diff options
author | James O'Beirne <james.obeirne@pm.me> | 2021-07-09 09:24:27 -0400 |
---|---|---|
committer | James O'Beirne <james.obeirne@pm.me> | 2021-07-13 11:16:30 -0400 |
commit | 4abf0779d6594e97222279110c328b75b5f3db7b (patch) | |
tree | 6b51997a3fcf69120f55712cbcf20962860485b4 /src/validation.h | |
parent | 46e3efd1e4ae2f058ecfffdaee7e882c4305eb35 (diff) |
refactor: no mempool arg to GetCoinsCacheSizeState
Unnecessary argument since we can make use of this->m_mempool
Co-authored-by: John Newbery <john@johnnewbery.com>
Diffstat (limited to 'src/validation.h')
-rw-r--r-- | src/validation.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/validation.h b/src/validation.h index 68616f036a..5505ec463f 100644 --- a/src/validation.h +++ b/src/validation.h @@ -777,11 +777,9 @@ public: //! Dictates whether we need to flush the cache to disk or not. //! //! @return the state of the size of the coins cache. - CoinsCacheSizeState GetCoinsCacheSizeState(const CTxMemPool* tx_pool) - EXCLUSIVE_LOCKS_REQUIRED(::cs_main); + CoinsCacheSizeState GetCoinsCacheSizeState() EXCLUSIVE_LOCKS_REQUIRED(::cs_main); CoinsCacheSizeState GetCoinsCacheSizeState( - const CTxMemPool* tx_pool, size_t max_coins_cache_size_bytes, size_t max_mempool_size_bytes) EXCLUSIVE_LOCKS_REQUIRED(::cs_main); |