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

Method UpdateDescendantState

src/txmempool.cpp:459–466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

457}
458
459void CTxMemPoolEntry::UpdateDescendantState(int64_t modifySize, CAmount modifyFee, int64_t modifyCount)
460{
461 nSizeWithDescendants += modifySize;
462 assert(int64_t(nSizeWithDescendants) > 0);
463 nModFeesWithDescendants = SaturatingAdd(nModFeesWithDescendants, modifyFee);
464 nCountWithDescendants += modifyCount;
465 assert(int64_t(nCountWithDescendants) > 0);
466}
467
468void CTxMemPoolEntry::UpdateAncestorState(int64_t modifySize, CAmount modifyFee, int64_t modifyCount, int64_t modifySigOps, int64_t discountSize)
469{

Callers 1

operator()Method · 0.80

Calls 1

SaturatingAddFunction · 0.85

Tested by

no test coverage detected