|
|
@ -166,6 +166,8 @@ void SendCoinsDialog::setModel(WalletModel *_model) |
|
|
|
connect(ui->checkBoxMinimumFee, SIGNAL(stateChanged(int)), this, SLOT(updateFeeSectionControls())); |
|
|
|
connect(ui->checkBoxMinimumFee, SIGNAL(stateChanged(int)), this, SLOT(updateFeeSectionControls())); |
|
|
|
connect(ui->checkBoxMinimumFee, SIGNAL(stateChanged(int)), this, SLOT(updateGlobalFeeVariables())); |
|
|
|
connect(ui->checkBoxMinimumFee, SIGNAL(stateChanged(int)), this, SLOT(updateGlobalFeeVariables())); |
|
|
|
connect(ui->checkBoxMinimumFee, SIGNAL(stateChanged(int)), this, SLOT(coinControlUpdateLabels())); |
|
|
|
connect(ui->checkBoxMinimumFee, SIGNAL(stateChanged(int)), this, SLOT(coinControlUpdateLabels())); |
|
|
|
|
|
|
|
connect(ui->optInRBF, SIGNAL(stateChanged(int)), this, SLOT(updateSmartFeeLabel())); |
|
|
|
|
|
|
|
connect(ui->optInRBF, SIGNAL(stateChanged(int)), this, SLOT(coinControlUpdateLabels())); |
|
|
|
ui->customFee->setSingleStep(CWallet::GetRequiredFee(1000)); |
|
|
|
ui->customFee->setSingleStep(CWallet::GetRequiredFee(1000)); |
|
|
|
updateFeeSectionControls(); |
|
|
|
updateFeeSectionControls(); |
|
|
|
updateMinFeeLabel(); |
|
|
|
updateMinFeeLabel(); |
|
|
@ -652,7 +654,7 @@ void SendCoinsDialog::updateSmartFeeLabel() |
|
|
|
|
|
|
|
|
|
|
|
int nBlocksToConfirm = ui->sliderSmartFee->maximum() - ui->sliderSmartFee->value() + 2; |
|
|
|
int nBlocksToConfirm = ui->sliderSmartFee->maximum() - ui->sliderSmartFee->value() + 2; |
|
|
|
FeeCalculation feeCalc; |
|
|
|
FeeCalculation feeCalc; |
|
|
|
bool conservative_estimate = CalculateEstimateType(FeeEstimateMode::UNSET); |
|
|
|
bool conservative_estimate = CalculateEstimateType(FeeEstimateMode::UNSET, ui->optInRBF->isChecked()); |
|
|
|
CFeeRate feeRate = ::feeEstimator.estimateSmartFee(nBlocksToConfirm, &feeCalc, ::mempool, conservative_estimate); |
|
|
|
CFeeRate feeRate = ::feeEstimator.estimateSmartFee(nBlocksToConfirm, &feeCalc, ::mempool, conservative_estimate); |
|
|
|
if (feeRate <= CFeeRate(0)) // not enough data => minfee
|
|
|
|
if (feeRate <= CFeeRate(0)) // not enough data => minfee
|
|
|
|
{ |
|
|
|
{ |
|
|
@ -828,6 +830,7 @@ void SendCoinsDialog::coinControlUpdateLabels() |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
CoinControlDialog::coinControl->nConfirmTarget = model->getDefaultConfirmTarget(); |
|
|
|
CoinControlDialog::coinControl->nConfirmTarget = model->getDefaultConfirmTarget(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
CoinControlDialog::coinControl->signalRbf = ui->optInRBF->isChecked(); |
|
|
|
|
|
|
|
|
|
|
|
for(int i = 0; i < ui->entries->count(); ++i) |
|
|
|
for(int i = 0; i < ui->entries->count(); ++i) |
|
|
|
{ |
|
|
|
{ |
|
|
|