diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2013-09-18 11:48:41 +1000 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2013-10-04 22:05:06 +1000 |
commit | ea1cd5b47f473eed60b3ed95853b053e9f686d69 (patch) | |
tree | ae8b19ae5371cb7b76731ae4a4fa5c8067ae06c3 /src/wallet.cpp | |
parent | b16e9f02c82b98635da53c7e485614cba766f0a9 (diff) |
Remove CENT-output free transaction rule when relaying
Remove the (relay/mempool) rule that all outputs of free transactions
must be greater than 0.01 XBT. Dust spam is now taken care of by making
dusty outputs non-standard.
Diffstat (limited to 'src/wallet.cpp')
-rw-r--r-- | src/wallet.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp index 54ede12a50..daa5ba06ff 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -1232,9 +1232,10 @@ bool CWallet::CreateTransaction(const vector<pair<CScript, int64> >& vecSend, } int64 nChange = nValueIn - nValue - nFeeRet; - // if sub-cent change is required, the fee must be raised to at least nMinTxFee - // or until nChange becomes zero - // NOTE: this depends on the exact behaviour of GetMinFee + // The following if statement should be removed once enough miners + // have upgraded to the 0.9 GetMinFee() rules. Until then, this avoids + // creating free transactions that have change outputs less than + // CENT bitcoins. if (nFeeRet < CTransaction::nMinTxFee && nChange > 0 && nChange < CENT) { int64 nMoveToFee = min(nChange, CTransaction::nMinTxFee - nFeeRet); |