mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-13 08:38:15 +00:00
Stop trimming when mapTx is empty
This commit is contained in:
parent
a072d1a837
commit
96806c39f4
@ -1075,7 +1075,7 @@ void CTxMemPool::TrimToSize(size_t sizelimit, std::vector<uint256>* pvNoSpendsRe
|
|||||||
|
|
||||||
unsigned nTxnRemoved = 0;
|
unsigned nTxnRemoved = 0;
|
||||||
CFeeRate maxFeeRateRemoved(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();
|
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
|
// We set the new mempool min fee to the feerate of the removed set, plus the
|
||||||
|
Loading…
Reference in New Issue
Block a user