aboutsummaryrefslogtreecommitdiff
path: root/src/txmempool.cpp
diff options
context:
space:
mode:
authorElle Mouton <elle.mouton@gmail.com>2020-10-20 21:25:07 +0200
committerElle Mouton <elle.mouton@gmail.com>2020-10-23 14:41:40 +0200
commitf15e780b9e57554c723bc02aa41150ecf3e3a8c9 (patch)
tree7244af9d56b853ba7ebf95fd9dac1675402ad0bf /src/txmempool.cpp
parente3310692d0e9720e960b9785274ce1f0b58b4cd7 (diff)
downloadbitcoin-f15e780b9e57554c723bc02aa41150ecf3e3a8c9.tar.xz
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.cpp')
-rw-r--r--src/txmempool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/txmempool.cpp b/src/txmempool.cpp
index ca7021443e..d18182c07d 100644
--- a/src/txmempool.cpp
+++ b/src/txmempool.cpp
@@ -332,7 +332,7 @@ void CTxMemPoolEntry::UpdateAncestorState(int64_t modifySize, CAmount modifyFee,
}
CTxMemPool::CTxMemPool(CBlockPolicyEstimator* estimator, int check_ratio)
- : m_check_ratio(check_ratio), nTransactionsUpdated(0), minerPolicyEstimator(estimator), m_epoch(0), m_has_epoch_guard(false)
+ : m_check_ratio(check_ratio), minerPolicyEstimator(estimator)
{
_clear(); //lock free clear
}