@@ -166,6 +166,8 @@ void SendCoinsDialog::setModel(WalletModel *_model)
166166 connect (ui->checkBoxMinimumFee , SIGNAL (stateChanged (int )), this , SLOT (updateFeeSectionControls ()));
167167 connect (ui->checkBoxMinimumFee , SIGNAL (stateChanged (int )), this , SLOT (updateGlobalFeeVariables ()));
168168 connect (ui->checkBoxMinimumFee , SIGNAL (stateChanged (int )), this , SLOT (coinControlUpdateLabels ()));
169+ connect (ui->optInRBF , SIGNAL (stateChanged (int )), this , SLOT (updateSmartFeeLabel ()));
170+ connect (ui->optInRBF , SIGNAL (stateChanged (int )), this , SLOT (coinControlUpdateLabels ()));
169171 ui->customFee ->setSingleStep (CWallet::GetRequiredFee (1000 ));
170172 updateFeeSectionControls ();
171173 updateMinFeeLabel ();
@@ -652,7 +654,7 @@ void SendCoinsDialog::updateSmartFeeLabel()
652654
653655 int nBlocksToConfirm = ui->sliderSmartFee ->maximum () - ui->sliderSmartFee ->value () + 2 ;
654656 FeeCalculation feeCalc;
655- bool conservative_estimate = CalculateEstimateType (FeeEstimateMode::UNSET);
657+ bool conservative_estimate = CalculateEstimateType (FeeEstimateMode::UNSET, ui-> optInRBF -> isChecked () );
656658 CFeeRate feeRate = ::feeEstimator.estimateSmartFee (nBlocksToConfirm, &feeCalc, ::mempool, conservative_estimate);
657659 if (feeRate <= CFeeRate (0 )) // not enough data => minfee
658660 {
@@ -828,6 +830,7 @@ void SendCoinsDialog::coinControlUpdateLabels()
828830 } else {
829831 CoinControlDialog::coinControl->nConfirmTarget = model->getDefaultConfirmTarget ();
830832 }
833+ CoinControlDialog::coinControl->signalRbf = ui->optInRBF ->isChecked ();
831834
832835 for (int i = 0 ; i < ui->entries ->count (); ++i)
833836 {
0 commit comments