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.
This commit is contained in:
Carl Dong
2022-03-17 22:09:05 -04:00
parent 716bb5fbd3
commit 9333427014
7 changed files with 61 additions and 1 deletions

View File

@@ -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
}