aboutsummaryrefslogtreecommitdiff
path: root/src/txmempool.cpp
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2022-03-17 22:09:05 -0400
committerCarl Dong <contact@carldong.me>2022-06-28 15:46:10 -0400
commit9333427014695ac235c96d48791098168dfdc9db (patch)
tree07ad5f9e9837a97418739be0a09e896a3ced829e /src/txmempool.cpp
parent716bb5fbd31077bbe99d11a54d6c2c250afc8085 (diff)
downloadbitcoin-9333427014695ac235c96d48791098168dfdc9db.tar.xz
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.cpp3
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
}