Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.cpp
Show All 21 Lines | |||||
#include <util/time.h> | #include <util/time.h> | ||||
#include <validation.h> | #include <validation.h> | ||||
#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 _sigOpCount, | ||||
LockPoints lp) | LockPoints lp) | ||||
: tx(_tx), nFee(_nFee), nTime(_nTime), entryHeight(_entryHeight), | : tx(_tx), nFee(_nFee), nTime(_nTime), entryHeight(_entryHeight), | ||||
spendsCoinbase(_spendsCoinbase), sigOpCount(_sigOpsCount), | spendsCoinbase(_spendsCoinbase), sigOpCount(_sigOpCount), lockPoints(lp) { | ||||
lockPoints(lp) { | |||||
nTxSize = tx->GetTotalSize(); | nTxSize = tx->GetTotalSize(); | ||||
nUsageSize = RecursiveDynamicUsage(tx); | nUsageSize = RecursiveDynamicUsage(tx); | ||||
nCountWithDescendants = 1; | nCountWithDescendants = 1; | ||||
nSizeWithDescendants = GetTxSize(); | nSizeWithDescendants = GetTxSize(); | ||||
nModFeesWithDescendants = nFee; | nModFeesWithDescendants = nFee; | ||||
feeDelta = Amount::zero(); | feeDelta = Amount::zero(); | ||||
▲ Show 20 Lines • Show All 1,352 Lines • Show Last 20 Lines |