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

Method UpdateEntryForAncestors

src/txmempool.cpp:374–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372}
373
374void CTxMemPool::UpdateEntryForAncestors(txiter it, const setEntries &setAncestors)
375{
376 int64_t updateCount = setAncestors.size();
377 int64_t updateSize = 0;
378 CAmount updateFee = 0;
379 int64_t updateSigOpsCost = 0;
380 int64_t discountSize = 0;
381 for (txiter ancestorIt : setAncestors) {
382 updateSize += ancestorIt->GetTxSize();
383 updateFee += ancestorIt->GetModifiedFee();
384 updateSigOpsCost += ancestorIt->GetSigOpCost();
385 discountSize += ancestorIt->GetDiscountTxSize();
386 }
387 mapTx.modify(it, update_ancestor_state(updateSize, updateFee, updateCount, updateSigOpsCost, discountSize));
388}
389
390void CTxMemPool::UpdateChildrenForRemoval(txiter it)
391{

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected