From 80d8df2d47c25851b51fe3319605fe41c34ca9f8 Mon Sep 17 00:00:00 2001 From: Suhas Daftuar Date: Sat, 25 Jan 2025 11:41:06 -0500 Subject: [PATCH] Invoke removeUnchecked() directly in removeForBlock() --- src/txmempool.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/txmempool.cpp b/src/txmempool.cpp index 1162634b5b7..ee4ced3b0c8 100644 --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -398,10 +398,8 @@ void CTxMemPool::removeForBlock(const std::vector& 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());