Changeset View
Changeset View
Standalone View
Standalone View
src/qt/coincontroldialog.cpp
Show First 20 Lines • Show All 637 Lines • ▼ Show 20 Lines | void CoinControlDialog::updateLabels(WalletModel *model, QDialog *dialog) { | ||||
l7->setStyleSheet((fDust) ? "color:red;" : ""); | l7->setStyleSheet((fDust) ? "color:red;" : ""); | ||||
// tool tips | // tool tips | ||||
QString toolTipDust = | QString toolTipDust = | ||||
tr("This label turns red if any recipient receives an amount smaller " | tr("This label turns red if any recipient receives an amount smaller " | ||||
"than the current dust threshold."); | "than the current dust threshold."); | ||||
// how many satoshis the estimated fee can vary per byte we guess wrong | // how many satoshis the estimated fee can vary per byte we guess wrong | ||||
double dFeeVary; | double dFeeVary = | ||||
if (payTxFee.GetFeePerK() > Amount::zero()) { | CWallet::GetMinimumFee(1000, 2, mempool) / (1000 * SATOSHI); | ||||
dFeeVary = | |||||
std::max(CWallet::GetRequiredFee(1000), payTxFee.GetFeePerK()) / | |||||
(1000 * SATOSHI); | |||||
} else { | |||||
dFeeVary = | |||||
std::max(CWallet::GetRequiredFee(1000), | |||||
mempool.estimateSmartFee(nTxConfirmTarget).GetFeePerK()) / | |||||
(1000 * SATOSHI); | |||||
} | |||||
QString toolTip4 = | QString toolTip4 = | ||||
tr("Can vary +/- %1 satoshi(s) per input.").arg(dFeeVary); | tr("Can vary +/- %1 satoshi(s) per input.").arg(dFeeVary); | ||||
l3->setToolTip(toolTip4); | l3->setToolTip(toolTip4); | ||||
l4->setToolTip(toolTip4); | l4->setToolTip(toolTip4); | ||||
l7->setToolTip(toolTipDust); | l7->setToolTip(toolTipDust); | ||||
l8->setToolTip(toolTip4); | l8->setToolTip(toolTip4); | ||||
dialog->findChild<QLabel *>("labelCoinControlFeeText") | dialog->findChild<QLabel *>("labelCoinControlFeeText") | ||||
▲ Show 20 Lines • Show All 183 Lines • Show Last 20 Lines |