diff options
author | James O'Beirne <james.obeirne@gmail.com> | 2019-04-16 16:40:40 -0400 |
---|---|---|
committer | James O'Beirne <james.obeirne@gmail.com> | 2019-12-12 11:20:17 -0500 |
commit | b17e91d842724d2888a179a73585cc4c2ef1dc21 (patch) | |
tree | 5a46df4981661ad2cc55bbeddd890c1ac4a688da /src/txdb.h | |
parent | 54e11a39e14dce11b2869b4610eb175cb7d27b05 (diff) |
refactoring: introduce CChainState::GetCoinsCacheSizeState
This separates out some logic for detecting how full the coins cache is from
FlushStateToDisk. We'll want to reuse this logic when deciding when to flush
the coins cache during UTXO snapshot activation.
Diffstat (limited to 'src/txdb.h')
-rw-r--r-- | src/txdb.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/txdb.h b/src/txdb.h index 05bf4e4453..f6db06b6de 100644 --- a/src/txdb.h +++ b/src/txdb.h @@ -20,8 +20,6 @@ class CBlockIndex; class CCoinsViewDBCursor; class uint256; -//! No need to periodic flush if at least this much space still available. -static constexpr int MAX_BLOCK_COINSDB_USAGE = 10; //! -dbcache default (MiB) static const int64_t nDefaultDbCache = 450; //! -dbbatchsize default (bytes) |