Changeset View
Changeset View
Standalone View
Standalone View
src/txdb.h
Show All 37 Lines | |||||
static const int64_t nMinDbCache = 4; | static const int64_t nMinDbCache = 4; | ||||
//! Max memory allocated to block tree DB specific cache, if no -txindex (MiB) | //! Max memory allocated to block tree DB specific cache, if no -txindex (MiB) | ||||
static const int64_t nMaxBlockDBCache = 2; | static const int64_t nMaxBlockDBCache = 2; | ||||
//! Max memory allocated to block tree DB specific cache, if -txindex (MiB) | //! Max memory allocated to block tree DB specific cache, if -txindex (MiB) | ||||
// Unlike for the UTXO database, for the txindex scenario the leveldb cache make | // Unlike for the UTXO database, for the txindex scenario the leveldb cache make | ||||
// a meaningful difference: | // a meaningful difference: | ||||
// https://github.com/bitcoin/bitcoin/pull/8273#issuecomment-229601991 | // https://github.com/bitcoin/bitcoin/pull/8273#issuecomment-229601991 | ||||
static const int64_t nMaxTxIndexCache = 1024; | static const int64_t nMaxTxIndexCache = 1024; | ||||
//! Max memory allocated to all block filter index caches combined in MiB. | |||||
static const int64_t max_filter_index_cache = 1024; | |||||
//! Max memory allocated to coin DB specific cache (MiB) | //! Max memory allocated to coin DB specific cache (MiB) | ||||
static const int64_t nMaxCoinsDBCache = 8; | static const int64_t nMaxCoinsDBCache = 8; | ||||
/** CCoinsView backed by the coin database (chainstate/) */ | /** CCoinsView backed by the coin database (chainstate/) */ | ||||
class CCoinsViewDB final : public CCoinsView { | class CCoinsViewDB final : public CCoinsView { | ||||
protected: | protected: | ||||
CDBWrapper db; | CDBWrapper db; | ||||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |