diff options
author | MarcoFalke <falke.marco@gmail.com> | 2015-09-13 23:23:59 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2015-10-28 10:52:46 +0100 |
commit | 6b0e622c25ddba656149de0f9f8b7f2a0aa0deba (patch) | |
tree | 5e4f6bc4931e4d687174c742ec5cb3112755b261 /src/qt/coincontroldialog.cpp | |
parent | 0143a1f228c3447ae2e025c697b0ad53a0d8d306 (diff) |
[wallet] Refactor to use new MIN_CHANGE
* Introduce new constant MIN_CHANGE and use it instead of the
hardcoded "CENT"
* Add test case for MIN_CHANGE
* Introduce new constant for -mintxfee default:
DEFAULT_TRANSACTION_MINFEE = 1000
Diffstat (limited to 'src/qt/coincontroldialog.cpp')
-rw-r--r-- | src/qt/coincontroldialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/coincontroldialog.cpp b/src/qt/coincontroldialog.cpp index 51008ad2de..74bc8dbec9 100644 --- a/src/qt/coincontroldialog.cpp +++ b/src/qt/coincontroldialog.cpp @@ -567,7 +567,7 @@ void CoinControlDialog::updateLabels(WalletModel *model, QDialog* dialog) nChange -= nPayFee; // Never create dust outputs; if we would, just add the dust to the fee. - if (nChange > 0 && nChange < CENT) + if (nChange > 0 && nChange < MIN_CHANGE) { CTxOut txout(nChange, (CScript)std::vector<unsigned char>(24, 0)); if (txout.IsDust(::minRelayTxFee)) |