From b17e91d842724d2888a179a73585cc4c2ef1dc21 Mon Sep 17 00:00:00 2001 From: James O'Beirne Date: Tue, 16 Apr 2019 16:40:40 -0400 Subject: 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. --- src/txdb.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/txdb.h') 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) -- cgit v1.2.3