| 19 | #include <utiltime.h> |
| 20 | |
| 21 | CTxMemPoolEntry::CTxMemPoolEntry(const CTransactionRef& _tx, const CAmount& _nFee, |
| 22 | int64_t _nTime, unsigned int _entryHeight, |
| 23 | bool _spendsCoinbase, int64_t _sigOpsCost, LockPoints lp): |
| 24 | tx(_tx), nFee(_nFee), nTime(_nTime), entryHeight(_entryHeight), |
| 25 | spendsCoinbase(_spendsCoinbase), sigOpCost(_sigOpsCost), lockPoints(lp) |
| 26 | { |
| 27 | nTxWeight = GetTransactionWeight(*tx); |
| 28 | nUsageSize = RecursiveDynamicUsage(tx); |
| 29 | |
| 30 | nCountWithDescendants = 1; |
| 31 | nSizeWithDescendants = GetTxSize(); |
| 32 | nModFeesWithDescendants = nFee; |
| 33 | |
| 34 | feeDelta = 0; |
| 35 | |
| 36 | nCountWithAncestors = 1; |
| 37 | nSizeWithAncestors = GetTxSize(); |
| 38 | nModFeesWithAncestors = nFee; |
| 39 | nSigOpCostWithAncestors = sigOpCost; |
| 40 | } |
| 41 | |
| 42 | void CTxMemPoolEntry::UpdateFeeDelta(int64_t newFeeDelta) |
| 43 | { |
nothing calls this directly
no test coverage detected