MCPcopy Create free account
hub / github.com/ElementsProject/elements / UpdateParent

Method UpdateParent

src/txmempool.cpp:1196–1205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1194}
1195
1196void CTxMemPool::UpdateParent(txiter entry, txiter parent, bool add)
1197{
1198 AssertLockHeld(cs);
1199 CTxMemPoolEntry::Parents s;
1200 if (add && entry->GetMemPoolParents().insert(*parent).second) {
1201 cachedInnerUsage += memusage::IncrementalDynamicUsage(s);
1202 } else if (!add && entry->GetMemPoolParents().erase(*parent)) {
1203 cachedInnerUsage -= memusage::IncrementalDynamicUsage(s);
1204 }
1205}
1206
1207CFeeRate CTxMemPool::GetMinFee(size_t sizelimit) const {
1208 LOCK(cs);

Callers

nothing calls this directly

Calls 3

IncrementalDynamicUsageFunction · 0.85
insertMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected