Invoke removeUnchecked() directly in removeForBlock()

This commit is contained in:
Suhas Daftuar 2025-01-25 11:41:06 -05:00
parent 9292570f4c
commit 80d8df2d47

View File

@ -398,10 +398,8 @@ void CTxMemPool::removeForBlock(const std::vector<CTransactionRef>& vtx, unsigne
for (const auto& tx : vtx) {
txiter it = mapTx.find(tx->GetHash());
if (it != mapTx.end()) {
setEntries stage;
stage.insert(it);
txs_removed_for_block.emplace_back(*it);
RemoveStaged(stage, MemPoolRemovalReason::BLOCK);
removeUnchecked(it, MemPoolRemovalReason::BLOCK);
}
removeConflicts(*tx);
ClearPrioritisation(tx->GetHash());