mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-31 10:41:08 +00:00
Invoke removeUnchecked() directly in removeForBlock()
This commit is contained in:
parent
9292570f4c
commit
80d8df2d47
@ -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());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user