diff options
author | Elle Mouton <elle.mouton@gmail.com> | 2020-10-20 21:25:07 +0200 |
---|---|---|
committer | Elle Mouton <elle.mouton@gmail.com> | 2020-10-23 14:41:40 +0200 |
commit | f15e780b9e57554c723bc02aa41150ecf3e3a8c9 (patch) | |
tree | 7244af9d56b853ba7ebf95fd9dac1675402ad0bf /src/txmempool.h | |
parent | e3310692d0e9720e960b9785274ce1f0b58b4cd7 (diff) |
refactor: Clean up CTxMemPool initializer list
Shorten the CTxMemPool initializer list using default initialization
for members that dont depend on the constuctor parameters.
Diffstat (limited to 'src/txmempool.h')
-rw-r--r-- | src/txmempool.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/txmempool.h b/src/txmempool.h index da071576ac..78ad62aae6 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -489,7 +489,7 @@ class CTxMemPool { private: const int m_check_ratio; //!< Value n means that 1 times in n we check. - std::atomic<unsigned int> nTransactionsUpdated; //!< Used by getblocktemplate to trigger CreateNewBlock() invocation + std::atomic<unsigned int> nTransactionsUpdated{0}; //!< Used by getblocktemplate to trigger CreateNewBlock() invocation CBlockPolicyEstimator* minerPolicyEstimator; uint64_t totalTxSize; //!< sum of all mempool tx's virtual sizes. Differs from serialized tx size since witness data is discounted. Defined in BIP 141. @@ -498,8 +498,8 @@ private: mutable int64_t lastRollingFeeUpdate; mutable bool blockSinceLastRollingFeeBump; mutable double rollingMinimumFeeRate; //!< minimum fee to get into the pool, decreases exponentially - mutable uint64_t m_epoch; - mutable bool m_has_epoch_guard; + mutable uint64_t m_epoch{0}; + mutable bool m_has_epoch_guard{false}; // In-memory counter for external mempool tracking purposes. // This number is incremented once every time a transaction |