|
|
@ -20,13 +20,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
CTxMemPoolEntry::CTxMemPoolEntry(const CTransactionRef& _tx, const CAmount& _nFee,
|
|
|
|
CTxMemPoolEntry::CTxMemPoolEntry(const CTransactionRef& _tx, const CAmount& _nFee,
|
|
|
|
int64_t _nTime, unsigned int _entryHeight,
|
|
|
|
int64_t _nTime, unsigned int _entryHeight,
|
|
|
|
bool _spendsCoinbase, int64_t _sigOpsCost, LockPoints lp):
|
|
|
|
bool _spendsCoinbase, int64_t _sigOpsCost, LockPoints lp)
|
|
|
|
tx(_tx), nFee(_nFee), nTime(_nTime), entryHeight(_entryHeight),
|
|
|
|
: tx(_tx), nFee(_nFee), nTxWeight(GetTransactionWeight(*tx)), nUsageSize(RecursiveDynamicUsage(tx)), nTime(_nTime), entryHeight(_entryHeight),
|
|
|
|
spendsCoinbase(_spendsCoinbase), sigOpCost(_sigOpsCost), lockPoints(lp)
|
|
|
|
spendsCoinbase(_spendsCoinbase), sigOpCost(_sigOpsCost), lockPoints(lp)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
nTxWeight = GetTransactionWeight(*tx);
|
|
|
|
|
|
|
|
nUsageSize = RecursiveDynamicUsage(tx);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nCountWithDescendants = 1;
|
|
|
|
nCountWithDescendants = 1;
|
|
|
|
nSizeWithDescendants = GetTxSize();
|
|
|
|
nSizeWithDescendants = GetTxSize();
|
|
|
|
nModFeesWithDescendants = nFee;
|
|
|
|
nModFeesWithDescendants = nFee;
|
|
|
|