| 80 | } |
| 81 | |
| 82 | CTxMemPoolEntry::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 | |
| 104 | void CTxMemPoolEntry::UpdateModifiedFee(CAmount fee_diff) |
| 105 | { |
nothing calls this directly
no test coverage detected