mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +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()) {
|
if (it2 != mapWithdrawsSpentToTxid.end()) {
|
||||||
txiter txit = mapTx.find(it2->second);
|
txiter txit = mapTx.find(it2->second);
|
||||||
assert(txit != mapTx.end());
|
assert(txit != mapTx.end());
|
||||||
|
const CTransaction& tx = txit->GetTx();
|
||||||
setEntries stage;
|
setEntries stage;
|
||||||
stage.insert(txit);
|
stage.insert(txit);
|
||||||
RemoveStaged(stage, true);
|
RemoveStaged(stage, true);
|
||||||
|
removeRecursive(tx, MemPoolRemovalReason::CONFLICT);
|
||||||
|
ClearPrioritisation(it2->second);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
lastRollingFeeUpdate = GetTime();
|
lastRollingFeeUpdate = GetTime();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue