Permalink
Browse files

Merge #8220: Stop trimming when mapTx is empty

ad0752e Stop trimming when mapTx is empty (Pieter Wuille)
  • Loading branch information...
laanwj committed Jun 20, 2016
2 parents 94ab58b + ad0752e commit 1f86d64f6d87b46ee80c6d66b0c3c01c5095aaea
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/txmempool.cpp
View
@@ -1075,7 +1075,7 @@ void CTxMemPool::TrimToSize(size_t sizelimit, std::vector<uint256>* pvNoSpendsRe
unsigned nTxnRemoved = 0;
CFeeRate maxFeeRateRemoved(0);
while (DynamicMemoryUsage() > sizelimit) {
while (!mapTx.empty() && DynamicMemoryUsage() > sizelimit) {
indexed_transaction_set::index<descendant_score>::type::iterator it = mapTx.get<descendant_score>().begin();
// We set the new mempool min fee to the feerate of the removed set, plus the

0 comments on commit 1f86d64

Please sign in to comment.