diff options
| author | Jeff Garzik <[email protected]> | 2012-09-09 17:05:26 -0400 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2012-09-09 17:05:26 -0400 |
| commit | 17f8d6e4001afa81a3e481d24c869cd14301f964 (patch) | |
| tree | e20350a19c55fac83bddfd03ef3f8efbb647a287 /src/main.cpp | |
| parent | Cosmetic: move CTransaction::GetMinFee out of header file (diff) | |
| download | discoin-17f8d6e4001afa81a3e481d24c869cd14301f964.tar.xz discoin-17f8d6e4001afa81a3e481d24c869cd14301f964.zip | |
Improve debug logging, for mempool TXs that do not include sufficient fees
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 70ffe7343..35b666beb 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -612,8 +612,11 @@ bool CTxMemPool::accept(CTxDB& txdb, CTransaction &tx, bool fCheckInputs, unsigned int nSize = ::GetSerializeSize(tx, SER_NETWORK, PROTOCOL_VERSION); // Don't accept it if it can't get into a block - if (nFees < tx.GetMinFee(1000, true, GMF_RELAY)) - return error("CTxMemPool::accept() : not enough fees"); + int64 txMinFee = tx.GetMinFee(1000, true, GMF_RELAY); + if (nFees < txMinFee) + return error("CTxMemPool::accept() : not enough fees %s, %"PRI64d" < %"PRI64d, + hash.ToString().substr(0,10).c_str(), + nFees, txMinFee); // Continuously rate-limit free transactions // This mitigates 'penny-flooding' -- sending thousands of free transactions just to |