diff options
| author | MarcoFalke <[email protected]> | 2018-07-28 20:55:32 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2018-07-30 08:57:49 -0400 |
| commit | ddd395f968a050be5dd0ae21ba7d189b6b7f73fd (patch) | |
| tree | 0d085986693b7394ff13ef7cf79ffd43cec5f17e /src/txmempool.h | |
| parent | refactor: Avoid locking tx pool cs thrice (diff) | |
| download | discoin-ddd395f968a050be5dd0ae21ba7d189b6b7f73fd.tar.xz discoin-ddd395f968a050be5dd0ae21ba7d189b6b7f73fd.zip | |
Mark CTxMemPoolEntry members that should not be modified const
Diffstat (limited to 'src/txmempool.h')
| -rw-r--r-- | src/txmempool.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/txmempool.h b/src/txmempool.h index 0feea08f0..200378395 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -64,14 +64,14 @@ class CTxMemPool; class CTxMemPoolEntry { private: - CTransactionRef tx; - CAmount nFee; //!< Cached to avoid expensive parent-transaction lookups - size_t nTxWeight; //!< ... and avoid recomputing tx weight (also used for GetTxSize()) - size_t nUsageSize; //!< ... and total memory usage - int64_t nTime; //!< Local time when entering the mempool - unsigned int entryHeight; //!< Chain height when entering the mempool - bool spendsCoinbase; //!< keep track of transactions that spend a coinbase - int64_t sigOpCost; //!< Total sigop cost + const CTransactionRef tx; + const CAmount nFee; //!< Cached to avoid expensive parent-transaction lookups + const size_t nTxWeight; //!< ... and avoid recomputing tx weight (also used for GetTxSize()) + const size_t nUsageSize; //!< ... and total memory usage + const int64_t nTime; //!< Local time when entering the mempool + const unsigned int entryHeight; //!< Chain height when entering the mempool + const bool spendsCoinbase; //!< keep track of transactions that spend a coinbase + const int64_t sigOpCost; //!< Total sigop cost int64_t feeDelta; //!< Used for determining the priority of the transaction for mining in a block LockPoints lockPoints; //!< Track the height and time at which tx was final |