MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / CTxMemPoolEntry

Method CTxMemPoolEntry

src/txmempool.cpp:21–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19#include <utiltime.h>
20
21CTxMemPoolEntry::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
42void CTxMemPoolEntry::UpdateFeeDelta(int64_t newFeeDelta)
43{

Callers

nothing calls this directly

Calls 2

GetTransactionWeightFunction · 0.85
RecursiveDynamicUsageFunction · 0.85

Tested by

no test coverage detected