diff options
author | Carl Dong <contact@carldong.me> | 2022-06-06 21:19:50 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2022-06-28 15:46:20 -0400 |
commit | 38af2bcf358a72b9457d370282e57f4be1c5c849 (patch) | |
tree | 2cdc8a30c4c048622262777cec48db88000f1419 /src/validation.cpp | |
parent | 9333427014695ac235c96d48791098168dfdc9db (diff) |
mempoolaccept: Use limits from mempool in constructor
Diffstat (limited to 'src/validation.cpp')
-rw-r--r-- | src/validation.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index 431b89c32b..166aaa56fb 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -425,10 +425,10 @@ class MemPoolAccept { public: explicit MemPoolAccept(CTxMemPool& mempool, CChainState& active_chainstate) : m_pool(mempool), m_view(&m_dummy), m_viewmempool(&active_chainstate.CoinsTip(), m_pool), m_active_chainstate(active_chainstate), - m_limit_ancestors(gArgs.GetIntArg("-limitancestorcount", DEFAULT_ANCESTOR_LIMIT)), - m_limit_ancestor_size(gArgs.GetIntArg("-limitancestorsize", DEFAULT_ANCESTOR_SIZE_LIMIT_KVB)*1000), - m_limit_descendants(gArgs.GetIntArg("-limitdescendantcount", DEFAULT_DESCENDANT_LIMIT)), - m_limit_descendant_size(gArgs.GetIntArg("-limitdescendantsize", DEFAULT_DESCENDANT_SIZE_LIMIT_KVB)*1000) { + m_limit_ancestors(m_pool.m_limits.ancestor_count), + m_limit_ancestor_size(m_pool.m_limits.ancestor_size_vbytes), + m_limit_descendants(m_pool.m_limits.descendant_count), + m_limit_descendant_size(m_pool.m_limits.descendant_size_vbytes) { } // We put the arguments we're handed into a struct, so we can pass them |