Changeset View
Changeset View
Standalone View
Standalone View
src/qt/sendcoinsdialog.cpp
Show First 20 Lines • Show All 781 Lines • ▼ Show 20 Lines | |||||
void SendCoinsDialog::updateSmartFeeLabel() { | void SendCoinsDialog::updateSmartFeeLabel() { | ||||
if (!model || !model->getOptionsModel()) { | if (!model || !model->getOptionsModel()) { | ||||
return; | return; | ||||
} | } | ||||
int nBlocksToConfirm = | int nBlocksToConfirm = | ||||
getConfTargetForIndex(ui->confTargetSelector->currentIndex()); | getConfTargetForIndex(ui->confTargetSelector->currentIndex()); | ||||
CFeeRate feeRate = g_mempool.estimateFee(nBlocksToConfirm); | CFeeRate feeRate = g_mempool.estimateFee(); | ||||
deadalnix: nBlocksToConfirm should probably also be cleaned up. | |||||
jasonbcoxAuthorUnsubmitted Done Inline ActionsIt's used in the labelFeeEstimation below. I can still clean this up, but the message will need to change to "next block". jasonbcox: It's used in the labelFeeEstimation below. I can still clean this up, but the message will… | |||||
// not enough data => minfee | // not enough data => minfee | ||||
if (feeRate <= CFeeRate(Amount::zero())) { | if (feeRate <= CFeeRate(Amount::zero())) { | ||||
ui->labelSmartFee->setText( | ui->labelSmartFee->setText( | ||||
BitcoinUnits::formatWithUnit( | BitcoinUnits::formatWithUnit( | ||||
model->getOptionsModel()->getDisplayUnit(), | model->getOptionsModel()->getDisplayUnit(), | ||||
std::max(CWallet::fallbackFee.GetFeePerK(), | std::max(CWallet::fallbackFee.GetFeePerK(), | ||||
GetMinimumFee(1000, 2, g_mempool))) + | GetMinimumFee(1000, 2, g_mempool))) + | ||||
"/kB"); | "/kB"); | ||||
▲ Show 20 Lines • Show All 232 Lines • Show Last 20 Lines |
nBlocksToConfirm should probably also be cleaned up.