| 321 | } |
| 322 | |
| 323 | void CTxMemPool::removeRecursive(CTxMemPool::txiter to_remove, MemPoolRemovalReason reason) |
| 324 | { |
| 325 | AssertLockHeld(cs); |
| 326 | Assume(!m_have_changeset); |
| 327 | auto descendants = m_txgraph->GetDescendants(*to_remove, TxGraph::Level::MAIN); |
| 328 | for (auto tx: descendants) { |
| 329 | removeUnchecked(mapTx.iterator_to(static_cast<const CTxMemPoolEntry&>(*tx)), reason); |
| 330 | } |
| 331 | } |
| 332 | |
| 333 | void CTxMemPool::removeRecursive(const CTransaction &origTx, MemPoolRemovalReason reason) |
| 334 | { |