diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2017-08-28 09:20:50 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2017-08-28 09:20:50 +0200 |
commit | 55509f1a11003837714071d05ea878b340757a76 (patch) | |
tree | f383c41d3a9564ff7bae1a86d7aa1b3f42b86c21 /src/qt | |
parent | 3f726c99f819f97f2ab21b94d34c6b3129cd883a (diff) |
Document assumptions that are being made to avoid division by zero
Diffstat (limited to 'src/qt')
-rw-r--r-- | src/qt/coincontroldialog.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qt/coincontroldialog.cpp b/src/qt/coincontroldialog.cpp index f3ee0fbe39..0225dd3cd6 100644 --- a/src/qt/coincontroldialog.cpp +++ b/src/qt/coincontroldialog.cpp @@ -581,6 +581,7 @@ void CoinControlDialog::updateLabels(WalletModel *model, QDialog* dialog) QString toolTipDust = tr("This label turns red if any recipient receives an amount smaller than the current dust threshold."); // how many satoshis the estimated fee can vary per byte we guess wrong + assert(nBytes != 0); double dFeeVary = (double)nPayFee / nBytes; QString toolTip4 = tr("Can vary +/- %1 satoshi(s) per input.").arg(dFeeVary); |