MCPcopy Create free account
hub / github.com/LUX-Core/lux / UpdateEntryForAncestors

Method UpdateEntryForAncestors

src/txmempool.cpp:252–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252void CTxMemPool::UpdateEntryForAncestors(txiter it, const setEntries &setAncestors)
253{
254 int64_t updateCount = setAncestors.size();
255 int64_t updateSize = 0;
256 CAmount updateFee = 0;
257 int64_t updateSigOpsCost = 0;
258 for (txiter ancestorIt : setAncestors) {
259 updateSize += ancestorIt->GetTxSize();
260 updateFee += ancestorIt->GetModifiedFee();
261 updateSigOpsCost += ancestorIt->GetSigOpCost();
262 }
263 mapTx.modify(it, update_ancestor_state(updateSize, updateFee, updateCount, updateSigOpsCost));
264}
265
266void CTxMemPool::UpdateChildrenForRemoval(txiter it)
267{

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