File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -590,12 +590,12 @@ void SendCoinsDialog::updateGlobalFeeVariables()
590590{
591591 if (ui->radioSmartFee ->isChecked ())
592592 {
593- nTxConfirmTarget = ( int ) 25 - ( int ) std::max ( 0 , std::min ( 24 , ui->sliderSmartFee ->value ()) );
593+ nTxConfirmTarget = defaultConfirmTarget - ui->sliderSmartFee ->value ();
594594 payTxFee = CFeeRate (0 );
595595 }
596596 else
597597 {
598- nTxConfirmTarget = 25 ;
598+ nTxConfirmTarget = defaultConfirmTarget ;
599599 payTxFee = CFeeRate (ui->customFee ->value ());
600600 fPayAtLeastCustomFee = ui->radioCustomAtLeast ->isChecked ();
601601 }
@@ -629,7 +629,7 @@ void SendCoinsDialog::updateSmartFeeLabel()
629629 if (!model || !model->getOptionsModel ())
630630 return ;
631631
632- int nBlocksToConfirm = ( int ) 25 - ( int ) std::max ( 0 , std::min ( 24 , ui->sliderSmartFee ->value ()) );
632+ int nBlocksToConfirm = defaultConfirmTarget - ui->sliderSmartFee ->value ();
633633 CFeeRate feeRate = mempool.estimateFee (nBlocksToConfirm);
634634 if (feeRate <= CFeeRate (0 )) // not enough data => minfee
635635 {
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ QT_BEGIN_NAMESPACE
2323class QUrl ;
2424QT_END_NAMESPACE
2525
26+ const int defaultConfirmTarget = 25 ;
27+
2628/* * Dialog for sending bitcoins */
2729class SendCoinsDialog : public QDialog
2830{
You can’t perform that action at this time.
0 commit comments