Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.cpp
Show All 23 Lines | |||||
#include <version.h> | #include <version.h> | ||||
#include <algorithm> | #include <algorithm> | ||||
CTxMemPoolEntry::CTxMemPoolEntry(const CTransactionRef &_tx, const Amount _nFee, | CTxMemPoolEntry::CTxMemPoolEntry(const CTransactionRef &_tx, const Amount _nFee, | ||||
int64_t _nTime, unsigned int _entryHeight, | int64_t _nTime, unsigned int _entryHeight, | ||||
bool _spendsCoinbase, int64_t _sigOpsCount, | bool _spendsCoinbase, int64_t _sigOpsCount, | ||||
LockPoints lp) | LockPoints lp) | ||||
: tx(_tx), nFee(_nFee), nTime(_nTime), entryHeight(_entryHeight), | : tx(_tx), nFee(_nFee), nTxSize(tx->GetTotalSize()), | ||||
spendsCoinbase(_spendsCoinbase), sigOpCount(_sigOpsCount), | nUsageSize(RecursiveDynamicUsage(tx)), nTime(_nTime), | ||||
lockPoints(lp) { | entryHeight(_entryHeight), spendsCoinbase(_spendsCoinbase), | ||||
nTxSize = tx->GetTotalSize(); | sigOpCount(_sigOpsCount), lockPoints(lp) { | ||||
nUsageSize = RecursiveDynamicUsage(tx); | |||||
nCountWithDescendants = 1; | nCountWithDescendants = 1; | ||||
nSizeWithDescendants = GetTxSize(); | nSizeWithDescendants = GetTxSize(); | ||||
nModFeesWithDescendants = nFee; | nModFeesWithDescendants = nFee; | ||||
feeDelta = Amount::zero(); | feeDelta = Amount::zero(); | ||||
nCountWithAncestors = 1; | nCountWithAncestors = 1; | ||||
nSizeWithAncestors = GetTxSize(); | nSizeWithAncestors = GetTxSize(); | ||||
▲ Show 20 Lines • Show All 1,349 Lines • Show Last 20 Lines |