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

Method CTxMemPoolEntry

src/txmempool.cpp:82–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82CTxMemPoolEntry::CTxMemPoolEntry(const CTransactionRef& tx, CAmount fee,
83 int64_t time, unsigned int entry_height,
84 bool spends_coinbase, int64_t sigops_cost, LockPoints lp,
85 const std::set<std::pair<uint256, COutPoint>>& _setPeginsSpent)
86 : tx{tx},
87 nFee{fee},
88 nTxWeight(GetTransactionWeight(*tx)),
89 nUsageSize{RecursiveDynamicUsage(tx)},
90 nTime{time},
91 entryHeight{entry_height},
92 spendsCoinbase{spends_coinbase},
93 sigOpCost{sigops_cost},
94 m_modified_fee{nFee},
95 lockPoints{lp},
96 nSizeWithDescendants{GetTxSize()},
97 nModFeesWithDescendants{nFee},
98 nSizeWithAncestors{GetTxSize()},
99 nModFeesWithAncestors{nFee},
100 nSigOpCostWithAncestors{sigOpCost},
101 discountSizeWithAncestors{GetDiscountTxSize()},
102 setPeginsSpent(_setPeginsSpent) {}
103
104void CTxMemPoolEntry::UpdateModifiedFee(CAmount fee_diff)
105{

Callers

nothing calls this directly

Calls 2

GetTransactionWeightFunction · 0.85
RecursiveDynamicUsageFunction · 0.85

Tested by

no test coverage detected