MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / UpdateChild

Method UpdateChild

src/txmempool.cpp:940–948  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

938}
939
940void CTxMemPool::UpdateChild(txiter entry, txiter child, bool add)
941{
942 setEntries s;
943 if (add && mapLinks[entry].children.insert(child).second) {
944 cachedInnerUsage += memusage::IncrementalDynamicUsage(s);
945 } else if (!add && mapLinks[entry].children.erase(child)) {
946 cachedInnerUsage -= memusage::IncrementalDynamicUsage(s);
947 }
948}
949
950void CTxMemPool::UpdateParent(txiter entry, txiter parent, bool add)
951{

Callers

nothing calls this directly

Calls 3

IncrementalDynamicUsageFunction · 0.85
insertMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected