mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-11 07:17:53 +00:00
Improve debug logging, for mempool TXs that do not include sufficient fees
This commit is contained in:
parent
76970091f1
commit
17f8d6e400
@ -612,8 +612,11 @@ bool CTxMemPool::accept(CTxDB& txdb, CTransaction &tx, bool fCheckInputs,
|
|||||||
unsigned int nSize = ::GetSerializeSize(tx, SER_NETWORK, PROTOCOL_VERSION);
|
unsigned int nSize = ::GetSerializeSize(tx, SER_NETWORK, PROTOCOL_VERSION);
|
||||||
|
|
||||||
// Don't accept it if it can't get into a block
|
// Don't accept it if it can't get into a block
|
||||||
if (nFees < tx.GetMinFee(1000, true, GMF_RELAY))
|
int64 txMinFee = tx.GetMinFee(1000, true, GMF_RELAY);
|
||||||
return error("CTxMemPool::accept() : not enough fees");
|
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
|
// Continuously rate-limit free transactions
|
||||||
// This mitigates 'penny-flooding' -- sending thousands of free transactions just to
|
// This mitigates 'penny-flooding' -- sending thousands of free transactions just to
|
||||||
|
Loading…
Reference in New Issue
Block a user