|
|
@ -41,17 +41,17 @@ class CTxMemPoolEntry |
|
|
|
{ |
|
|
|
private: |
|
|
|
CTransaction tx; |
|
|
|
CAmount nFee; //! Cached to avoid expensive parent-transaction lookups
|
|
|
|
size_t nTxSize; //! ... and avoid recomputing tx size
|
|
|
|
size_t nModSize; //! ... and modified size for priority
|
|
|
|
size_t nUsageSize; //! ... and total memory usage
|
|
|
|
CFeeRate feeRate; //! ... and fee per kB
|
|
|
|
int64_t nTime; //! Local time when entering the mempool
|
|
|
|
double dPriority; //! Priority when entering the mempool
|
|
|
|
unsigned int nHeight; //! Chain height when entering the mempool
|
|
|
|
bool hadNoDependencies; //! Not dependent on any other txs when it entered the mempool
|
|
|
|
bool spendsCoinbase; //! keep track of transactions that spend a coinbase
|
|
|
|
uint32_t nBranchId; //! Branch ID this transaction is known to commit to, cached for efficiency
|
|
|
|
CAmount nFee; //!< Cached to avoid expensive parent-transaction lookups
|
|
|
|
size_t nTxSize; //!< ... and avoid recomputing tx size
|
|
|
|
size_t nModSize; //!< ... and modified size for priority
|
|
|
|
size_t nUsageSize; //!< ... and total memory usage
|
|
|
|
CFeeRate feeRate; //!< ... and fee per kB
|
|
|
|
int64_t nTime; //!< Local time when entering the mempool
|
|
|
|
double dPriority; //!< Priority when entering the mempool
|
|
|
|
unsigned int nHeight; //!< Chain height when entering the mempool
|
|
|
|
bool hadNoDependencies; //!< Not dependent on any other txs when it entered the mempool
|
|
|
|
bool spendsCoinbase; //!< keep track of transactions that spend a coinbase
|
|
|
|
uint32_t nBranchId; //!< Branch ID this transaction is known to commit to, cached for efficiency
|
|
|
|
|
|
|
|
public: |
|
|
|
CTxMemPoolEntry(const CTransaction& _tx, const CAmount& _nFee, |
|
|
@ -124,12 +124,12 @@ public: |
|
|
|
class CTxMemPool |
|
|
|
{ |
|
|
|
private: |
|
|
|
uint32_t nCheckFrequency; //! Value n means that n times in 2^32 we check.
|
|
|
|
uint32_t nCheckFrequency; //!< Value n means that n times in 2^32 we check.
|
|
|
|
unsigned int nTransactionsUpdated; |
|
|
|
CBlockPolicyEstimator* minerPolicyEstimator; |
|
|
|
|
|
|
|
uint64_t totalTxSize = 0; //! sum of all mempool tx' byte sizes
|
|
|
|
uint64_t cachedInnerUsage; //! sum of dynamic memory usage of all the map elements (NOT the maps themselves)
|
|
|
|
uint64_t totalTxSize = 0; //!< sum of all mempool tx' byte sizes
|
|
|
|
uint64_t cachedInnerUsage; //!< sum of dynamic memory usage of all the map elements (NOT the maps themselves)
|
|
|
|
|
|
|
|
std::map<uint256, const CTransaction*> mapSproutNullifiers; |
|
|
|
std::map<uint256, const CTransaction*> mapSaplingNullifiers; |
|
|
|