diff options
| author | MarcoFalke <[email protected]> | 2015-09-13 23:23:59 +0200 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2015-10-28 10:52:46 +0100 |
| commit | 6b0e622c25ddba656149de0f9f8b7f2a0aa0deba (patch) | |
| tree | 5e4f6bc4931e4d687174c742ec5cb3112755b261 /src/qt/coincontroldialog.cpp | |
| parent | configure.ac: Revert autotools-auto-updated 2.69 autoconf requirement (diff) | |
| download | discoin-6b0e622c25ddba656149de0f9f8b7f2a0aa0deba.tar.xz discoin-6b0e622c25ddba656149de0f9f8b7f2a0aa0deba.zip | |
[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 51008ad2d..74bc8dbec 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)) |