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

Method UpdateEntryForAncestors

src/txmempool.cpp:229–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229void CTxMemPool::UpdateEntryForAncestors(txiter it, const setEntries &setAncestors)
230{
231 int64_t updateCount = setAncestors.size();
232 int64_t updateSize = 0;
233 CAmount updateFee = 0;
234 int64_t updateSigOpsCost = 0;
235 for (txiter ancestorIt : setAncestors) {
236 updateSize += ancestorIt->GetTxSize();
237 updateFee += ancestorIt->GetModifiedFee();
238 updateSigOpsCost += ancestorIt->GetSigOpCost();
239 }
240 mapTx.modify(it, update_ancestor_state(updateSize, updateFee, updateCount, updateSigOpsCost));
241}
242
243void CTxMemPool::UpdateChildrenForRemoval(txiter it)
244{

Callers

nothing calls this directly

Calls 5

GetSigOpCostMethod · 0.80
sizeMethod · 0.45
GetTxSizeMethod · 0.45
GetModifiedFeeMethod · 0.45

Tested by

no test coverage detected