mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 13:03:17 +01:00
Do not count 0-fee txes for fee estimation (#3037)
This commit is contained in:
parent
51c84248ad
commit
02f6188e8f
@ -687,8 +687,8 @@ static bool AcceptToMemoryPoolWorker(const CChainParams& chainparams, CTxMemPool
|
||||
|
||||
// This transaction should only count for fee estimation if the
|
||||
// node is not behind, and the transaction is not dependent on any other
|
||||
// transactions in the mempool.
|
||||
bool validForFeeEstimation = IsCurrentForFeeEstimation() && pool.HasNoInputsOf(tx);
|
||||
// transactions in the mempool. Also ignore 0-fee txes.
|
||||
bool validForFeeEstimation = (nFees != 0) && IsCurrentForFeeEstimation() && pool.HasNoInputsOf(tx);
|
||||
|
||||
// Store transaction in memory
|
||||
pool.addUnchecked(hash, entry, setAncestors, validForFeeEstimation);
|
||||
|
Loading…
Reference in New Issue
Block a user