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

Method UpdateParent

src/txmempool.cpp:950–958  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

948}
949
950void CTxMemPool::UpdateParent(txiter entry, txiter parent, bool add)
951{
952 setEntries s;
953 if (add && mapLinks[entry].parents.insert(parent).second) {
954 cachedInnerUsage += memusage::IncrementalDynamicUsage(s);
955 } else if (!add && mapLinks[entry].parents.erase(parent)) {
956 cachedInnerUsage -= memusage::IncrementalDynamicUsage(s);
957 }
958}
959
960const CTxMemPool::setEntries & CTxMemPool::GetMemPoolParents(txiter entry) const
961{

Callers

nothing calls this directly

Calls 3

IncrementalDynamicUsageFunction · 0.85
insertMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected