aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2015-10-19 02:40:25 -0700
committerMatt Corallo <git@bluematt.me>2015-10-19 02:41:52 -0700
commit58254aa3bc2e92840679183cc884eb76670af525 (patch)
treedb223b51f357eaf8c9aba7b14e1e675f8fcd9124
parent2bc50187ee6b6a3e4dfaa23bf292d63ad2915945 (diff)
downloadbitcoin-58254aa3bc2e92840679183cc884eb76670af525.tar.xz
Fix stale comment in CTxMemPool::TrimToSize.
-rw-r--r--src/txmempool.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/txmempool.cpp b/src/txmempool.cpp
index 9a651049d5..bb148005cd 100644
--- a/src/txmempool.cpp
+++ b/src/txmempool.cpp
@@ -903,10 +903,10 @@ void CTxMemPool::TrimToSize(size_t sizelimit) {
while (DynamicMemoryUsage() > sizelimit) {
indexed_transaction_set::nth_index<1>::type::iterator it = mapTx.get<1>().begin();
- // We set the new mempool min fee to either the feerate of the removed set,
- // or the "minimum reasonable fee rate" (ie some value under which we consider
- // txn to have 0 fee). This way, if the mempool reaches its full size on free
- // txn, we will simply disable free txn until there is a block, and some time.
+ // We set the new mempool min fee to the feerate of the removed set, plus the
+ // "minimum reasonable fee rate" (ie some value under which we consider txn
+ // to have 0 fee). This way, we don't allow txn to enter mempool with feerate
+ // equal to txn which were removed with no block in between.
CFeeRate removed(it->GetFeesWithDescendants(), it->GetSizeWithDescendants());
removed += minReasonableRelayFee;
trackPackageRemoved(removed);