Skip to content

Commit 1598961

Browse files
committed
Fix stale comment in CTxMemPool::TrimToSize.
- backports bitcoin/bitcoin@58254aa
1 parent 98d0d68 commit 1598961

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/txmempool.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -909,10 +909,10 @@ void CTxMemPool::TrimToSize(size_t sizelimit)
909909
while (DynamicMemoryUsage() > sizelimit) {
910910
indexed_transaction_set::nth_index<1>::type::iterator it = mapTx.get<1>().begin();
911911

912-
// We set the new mempool min fee to either the feerate of the removed set,
913-
// or the "minimum reasonable fee rate" (ie some value under which we consider
914-
// txn to have 0 fee). This way, if the mempool reaches its full size on free
915-
// txn, we will simply disable free txn until there is a block, and some time.
912+
// We set the new mempool min fee to the feerate of the removed set, plus the
913+
// "minimum reasonable fee rate" (ie some value under which we consider txn
914+
// to have 0 fee). This way, we don't allow txn to enter mempool with feerate
915+
// equal to txn which were removed with no block in between.
916916
CFeeRate removed(it->GetFeesWithDescendants(), it->GetSizeWithDescendants());
917917
removed += minReasonableRelayFee;
918918
trackPackageRemoved(removed);

0 commit comments

Comments
 (0)