From 9333427014695ac235c96d48791098168dfdc9db Mon Sep 17 00:00:00 2001 From: Carl Dong Date: Thu, 17 Mar 2022 22:09:05 -0400 Subject: mempool: Introduce (still-unused) MemPoolLimits They live as a CTxMemPool member. [META] These limits will be used in subsequent commits to replace calls to gArgs. --- src/txmempool.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/txmempool.cpp') diff --git a/src/txmempool.cpp b/src/txmempool.cpp index a2220e6874..2c2b063133 100644 --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -455,7 +455,8 @@ CTxMemPool::CTxMemPool(const Options& opts) : m_check_ratio{opts.check_ratio}, minerPolicyEstimator{opts.estimator}, m_max_size_bytes{opts.max_size_bytes}, - m_expiry{opts.expiry} + m_expiry{opts.expiry}, + m_limits{opts.limits} { _clear(); //lock free clear } -- cgit v1.2.3