MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / removeRecursive

Method removeRecursive

src/txmempool.cpp:323–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323void 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
333void CTxMemPool::removeRecursive(const CTransaction &origTx, MemPoolRemovalReason reason)
334{

Callers 7

DisconnectTipMethod · 0.80
BOOST_FIXTURE_TEST_CASEFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
TestPackageSelectionMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
FinishFunction · 0.80

Calls 8

GetDescendantsMethod · 0.80
findMethod · 0.80
lower_boundMethod · 0.80
GetDescendantsUnionMethod · 0.80
COutPointClass · 0.70
GetHashMethod · 0.45
endMethod · 0.45
emplace_backMethod · 0.45

Tested by 5

BOOST_FIXTURE_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
TestPackageSelectionMethod · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
FinishFunction · 0.64