mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
remove orphaned descendents of peg-ins on block receive
This commit is contained in:
parent
9627f30bd7
commit
9cb8b449f5
1 changed files with 3 additions and 0 deletions
|
|
@ -637,9 +637,12 @@ void CTxMemPool::removeForBlock(const std::vector<CTransactionRef>& vtx, unsigne
|
|||
if (it2 != mapWithdrawsSpentToTxid.end()) {
|
||||
txiter txit = mapTx.find(it2->second);
|
||||
assert(txit != mapTx.end());
|
||||
const CTransaction& tx = txit->GetTx();
|
||||
setEntries stage;
|
||||
stage.insert(txit);
|
||||
RemoveStaged(stage, true);
|
||||
removeRecursive(tx, MemPoolRemovalReason::CONFLICT);
|
||||
ClearPrioritisation(it2->second);
|
||||
}
|
||||
}
|
||||
lastRollingFeeUpdate = GetTime();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue