File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -903,10 +903,10 @@ void CTxMemPool::TrimToSize(size_t sizelimit) {
903
903
while (DynamicMemoryUsage () > sizelimit) {
904
904
indexed_transaction_set::nth_index<1 >::type::iterator it = mapTx.get <1 >().begin ();
905
905
906
- // We set the new mempool min fee to either the feerate of the removed set,
907
- // or the "minimum reasonable fee rate" (ie some value under which we consider
908
- // txn to have 0 fee). This way, if the mempool reaches its full size on free
909
- // txn, we will simply disable free txn until there is a block, and some time .
906
+ // We set the new mempool min fee to the feerate of the removed set, plus the
907
+ // "minimum reasonable fee rate" (ie some value under which we consider txn
908
+ // to have 0 fee). This way, we don't allow txn to enter mempool with feerate
909
+ // equal to txn which were removed with no block in between .
910
910
CFeeRate removed (it->GetFeesWithDescendants (), it->GetSizeWithDescendants ());
911
911
removed += minReasonableRelayFee;
912
912
trackPackageRemoved (removed);
You can’t perform that action at this time.
0 commit comments