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

Class update_ancestor_state

src/txmempool.cpp:47–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45};
46
47struct update_ancestor_state
48{
49 update_ancestor_state(int64_t _modifySize, CAmount _modifyFee, int64_t _modifyCount, int64_t _modifySigOpsCost, int64_t _discountSize) :
50 modifySize(_modifySize), modifyFee(_modifyFee), modifyCount(_modifyCount), modifySigOpsCost(_modifySigOpsCost),
51 discountSize(_discountSize)
52 {}
53
54 void operator() (CTxMemPoolEntry &e)
55 { e.UpdateAncestorState(modifySize, modifyFee, modifyCount, modifySigOpsCost, discountSize); }
56
57 private:
58 int64_t modifySize;
59 CAmount modifyFee;
60 int64_t modifyCount;
61 int64_t modifySigOpsCost;
62 int64_t discountSize;
63};
64
65bool TestLockPointValidity(CChain& active_chain, const LockPoints& lp)
66{

Callers 4

UpdateForDescendantsMethod · 0.85
PrioritiseTransactionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected