Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.h
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | |||||
* | * | ||||
* When a new entry is added to the mempool, we update the descendant state | * When a new entry is added to the mempool, we update the descendant state | ||||
* (nCountWithDescendants, nSizeWithDescendants, and nModFeesWithDescendants) | * (nCountWithDescendants, nSizeWithDescendants, and nModFeesWithDescendants) | ||||
* for all ancestors of the newly added transaction. | * for all ancestors of the newly added transaction. | ||||
*/ | */ | ||||
class CTxMemPoolEntry { | class CTxMemPoolEntry { | ||||
private: | private: | ||||
CTransactionRef tx; | const CTransactionRef tx; | ||||
//!< Cached to avoid expensive parent-transaction lookups | //!< Cached to avoid expensive parent-transaction lookups | ||||
Amount nFee; | const Amount nFee; | ||||
//!< ... and avoid recomputing tx size | //!< ... and avoid recomputing tx size | ||||
size_t nTxSize; | const size_t nTxSize; | ||||
//!< ... and total memory usage | //!< ... and total memory usage | ||||
size_t nUsageSize; | const size_t nUsageSize; | ||||
//!< Local time when entering the mempool | //!< Local time when entering the mempool | ||||
int64_t nTime; | const int64_t nTime; | ||||
//!< Chain height when entering the mempool | //!< Chain height when entering the mempool | ||||
unsigned int entryHeight; | const unsigned int entryHeight; | ||||
//!< keep track of transactions that spend a coinbase | //!< keep track of transactions that spend a coinbase | ||||
bool spendsCoinbase; | const bool spendsCoinbase; | ||||
//!< Total sigop plus P2SH sigops count | //!< Total sigop plus P2SH sigops count | ||||
int64_t sigOpCount; | const int64_t sigOpCount; | ||||
//!< Used for determining the priority of the transaction for mining in a | //!< Used for determining the priority of the transaction for mining in a | ||||
//! block | //! block | ||||
Amount feeDelta; | Amount feeDelta; | ||||
//!< Track the height and time at which tx was final | //!< Track the height and time at which tx was final | ||||
LockPoints lockPoints; | LockPoints lockPoints; | ||||
// Information about descendants of this transaction that are in the | // Information about descendants of this transaction that are in the | ||||
// mempool; if we remove this transaction we must remove all of these | // mempool; if we remove this transaction we must remove all of these | ||||
▲ Show 20 Lines • Show All 880 Lines • Show Last 20 Lines |