Skip to content

Commit c5adf8f

Browse files
committed
[Qt] Show more significant warning if we fall back to the default fee
1 parent f646275 commit c5adf8f

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

src/qt/forms/sendcoinsdialog.ui

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -759,11 +759,31 @@
759759
</item>
760760
</layout>
761761
</item>
762+
<item>
763+
<widget class="QLabel" name="fallbackFeeWarningLabel">
764+
<property name="toolTip">
765+
<string>Using the fallbackfee can result in sending a transaction that will take serval hours or days (or never) to confirm. Consider choosing your fee manually or wait until your have validated the complete chain.</string>
766+
</property>
767+
<property name="styleSheet">
768+
<string notr="true">color: rgb(255, 150, 0);
769+
font-weight: bold;</string>
770+
</property>
771+
<property name="text">
772+
<string>Warning: Fee estimation is currently not possible.</string>
773+
</property>
774+
<property name="wordWrap">
775+
<bool>false</bool>
776+
</property>
777+
</widget>
778+
</item>
762779
<item>
763780
<spacer name="horizontalSpacer_4">
764781
<property name="orientation">
765782
<enum>Qt::Horizontal</enum>
766783
</property>
784+
<property name="sizeType">
785+
<enum>QSizePolicy::MinimumExpanding</enum>
786+
</property>
767787
<property name="sizeHint" stdset="0">
768788
<size>
769789
<width>40</width>

src/qt/sendcoinsdialog.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,13 +655,15 @@ void SendCoinsDialog::updateSmartFeeLabel()
655655
std::max(CWallet::fallbackFee.GetFeePerK(), CWallet::GetRequiredFee(1000))) + "/kB");
656656
ui->labelSmartFee2->show(); // (Smart fee not initialized yet. This usually takes a few blocks...)
657657
ui->labelFeeEstimation->setText("");
658+
ui->fallbackFeeWarningLabel->setVisible(true);
658659
}
659660
else
660661
{
661662
ui->labelSmartFee->setText(BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(),
662663
std::max(feeRate.GetFeePerK(), CWallet::GetRequiredFee(1000))) + "/kB");
663664
ui->labelSmartFee2->hide();
664665
ui->labelFeeEstimation->setText(tr("Estimated to begin confirmation within %n block(s).", "", estimateFoundAtBlocks));
666+
ui->fallbackFeeWarningLabel->setVisible(false);
665667
}
666668

667669
updateFeeMinimizedLabel();

0 commit comments

Comments
 (0)