diff options
| author | Gavin Andresen <[email protected]> | 2013-09-18 11:48:41 +1000 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2013-10-04 22:05:06 +1000 |
| commit | ea1cd5b47f473eed60b3ed95853b053e9f686d69 (patch) | |
| tree | ae8b19ae5371cb7b76731ae4a4fa5c8067ae06c3 /src/main.cpp | |
| parent | Merge pull request #2985 from theuni/included-tests (diff) | |
| download | discoin-ea1cd5b47f473eed60b3ed95853b053e9f686d69.tar.xz discoin-ea1cd5b47f473eed60b3ed95853b053e9f686d69.zip | |
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/main.cpp')
| -rw-r--r-- | src/main.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 4b2c32e34..e2e2d3b84 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -760,8 +760,10 @@ int64 GetMinFee(const CTransaction& tx, bool fAllowFree, enum GetMinFee_mode mod nMinFee = 0; } - // To limit dust spam, require base fee if any output is less than 0.01 - if (nMinFee < nBaseFee) + // This code can be removed after enough miners have upgraded to version 0.9. + // Until then, be safe when sending and require a fee if any output + // is less than CENT: + if (nMinFee < nBaseFee && mode == GMF_SEND) { BOOST_FOREACH(const CTxOut& txout, tx.vout) if (txout.nValue < CENT) |