Skip to content

Commit

Permalink
Do not count 0-fee txes for fee estimation (dashpay#3037)
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 authored and codablock committed Aug 7, 2019
1 parent 974055a commit b1ffedb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -883,8 +883,8 @@ bool AcceptToMemoryPoolWorker(CTxMemPool& pool, CValidationState& state, const C

// 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);
Expand Down

0 comments on commit b1ffedb

Please sign in to comment.