Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.cpp
Show First 20 Lines • Show All 1,184 Lines • ▼ Show 20 Lines | while (!mapTx.empty() && DynamicMemoryUsage() > sizelimit) { | ||||
mapTx.get<descendant_score>().begin(); | mapTx.get<descendant_score>().begin(); | ||||
// We set the new mempool min fee to the feerate of the removed set, | // 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 | // 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 | // 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 | // mempool with feerate equal to txn which were removed with no block in | ||||
// between. | // between. | ||||
CFeeRate removed(it->GetModFeesWithDescendants(), | CFeeRate removed(it->GetModFeesWithDescendants(), | ||||
it->GetSizeWithDescendants()); | it->GetVirtualSizeWithDescendants()); | ||||
removed += MEMPOOL_FULL_FEE_INCREMENT; | removed += MEMPOOL_FULL_FEE_INCREMENT; | ||||
trackPackageRemoved(removed); | trackPackageRemoved(removed); | ||||
maxFeeRateRemoved = std::max(maxFeeRateRemoved, removed); | maxFeeRateRemoved = std::max(maxFeeRateRemoved, removed); | ||||
setEntries stage; | setEntries stage; | ||||
CalculateDescendants(mapTx.project<0>(it), stage); | CalculateDescendants(mapTx.project<0>(it), stage); | ||||
nTxnRemoved += stage.size(); | nTxnRemoved += stage.size(); | ||||
▲ Show 20 Lines • Show All 222 Lines • Show Last 20 Lines |