Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.cpp
Show First 20 Lines • Show All 1,195 Lines • ▼ Show 20 Lines | while (!mapTx.empty() && DynamicMemoryUsage() > sizelimit) { | ||||
} | } | ||||
RemoveStaged(stage, false, MemPoolRemovalReason::SIZELIMIT); | RemoveStaged(stage, false, MemPoolRemovalReason::SIZELIMIT); | ||||
if (pvNoSpendsRemaining) { | if (pvNoSpendsRemaining) { | ||||
for (const CTransaction &tx : txn) { | for (const CTransaction &tx : txn) { | ||||
for (const CTxIn &txin : tx.vin) { | for (const CTxIn &txin : tx.vin) { | ||||
if (exists(txin.prevout.GetTxId())) { | if (exists(txin.prevout.GetTxId())) { | ||||
continue; | continue; | ||||
} | } | ||||
if (!mapNextTx.count(txin.prevout)) { | |||||
pvNoSpendsRemaining->push_back(txin.prevout); | pvNoSpendsRemaining->push_back(txin.prevout); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
} | } | ||||
} | |||||
if (maxFeeRateRemoved > CFeeRate(Amount::zero())) { | if (maxFeeRateRemoved > CFeeRate(Amount::zero())) { | ||||
LogPrint(BCLog::MEMPOOL, | LogPrint(BCLog::MEMPOOL, | ||||
"Removed %u txn, rolling minimum fee bumped to %s\n", | "Removed %u txn, rolling minimum fee bumped to %s\n", | ||||
nTxnRemoved, maxFeeRateRemoved.ToString()); | nTxnRemoved, maxFeeRateRemoved.ToString()); | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 182 Lines • Show Last 20 Lines |