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

Class update_descendant_state

src/txmempool.cpp:32–45  ·  view source on GitHub ↗

Helpers for modifying CTxMemPool::mapTx, which is a boost multi_index.

Source from the content-addressed store, hash-verified

30
31// Helpers for modifying CTxMemPool::mapTx, which is a boost multi_index.
32struct update_descendant_state
33{
34 update_descendant_state(int64_t _modifySize, CAmount _modifyFee, int64_t _modifyCount) :
35 modifySize(_modifySize), modifyFee(_modifyFee), modifyCount(_modifyCount)
36 {}
37
38 void operator() (CTxMemPoolEntry &e)
39 { e.UpdateDescendantState(modifySize, modifyFee, modifyCount); }
40
41 private:
42 int64_t modifySize;
43 CAmount modifyFee;
44 int64_t modifyCount;
45};
46
47struct update_ancestor_state
48{

Callers 3

UpdateForDescendantsMethod · 0.85
UpdateAncestorsOfMethod · 0.85
PrioritiseTransactionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected