diff options
author | Carl Dong <contact@carldong.me> | 2022-03-17 22:09:05 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2022-06-28 15:46:10 -0400 |
commit | 9333427014695ac235c96d48791098168dfdc9db (patch) | |
tree | 07ad5f9e9837a97418739be0a09e896a3ced829e /src/txmempool.cpp | |
parent | 716bb5fbd31077bbe99d11a54d6c2c250afc8085 (diff) |
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.
Diffstat (limited to 'src/txmempool.cpp')
-rw-r--r-- | src/txmempool.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 } |