Invoke removeUnchecked() directly in removeForBlock()

This commit is contained in:
Suhas Daftuar committed 2025-11-30 11:02:08 -05:00
1 parent 9292570f4c
commit 80d8df2d47
1 file changed
+1 -3
+1 -3
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());