diff options
author | Elle Mouton <elle.mouton@gmail.com> | 2020-10-20 20:42:47 +0200 |
---|---|---|
committer | Elle Mouton <elle.mouton@gmail.com> | 2020-10-23 14:41:30 +0200 |
commit | e3310692d0e9720e960b9785274ce1f0b58b4cd7 (patch) | |
tree | b110b230110db9e2a9616a83cb8c3b545dbdb01d /src/pow.cpp | |
parent | 9d4b4b2c2c49774523de740d6492ee5b1ee15e74 (diff) |
refactor: Make CTxMemPool::m_check_ratio a const and a constructor argument
Since m_check_ratio is only set once and since the CTxMemPool object is
no longer a global variable, m_check_ratio can be passed into the
constructor of CTxMemPool. Since it is only read from after
initialization, m_check_ratio can also be made a const and hence no
longer needs to be guarded by the cs mutex.
Diffstat (limited to 'src/pow.cpp')
0 files changed, 0 insertions, 0 deletions