15 nTotalCache = std::max(nTotalCache,
nMinDbCache << 20);
27 sizes.
coins_db = std::min(nTotalCache / 2, (nTotalCache / 4) + (1 << 23));
30 sizes.
coins = nTotalCache;
int64_t GetIntArg(const std::string &strArg, int64_t nDefault) const
Return integer argument or default value.
bool GetBoolArg(const std::string &strArg, bool fDefault) const
Return boolean argument or default value.
CacheSizes CalculateCacheSizes(const ArgsManager &args, size_t n_indexes)
static const int64_t nMinDbCache
min. -dbcache (MiB)
static const int64_t nMaxCoinsDBCache
Max memory allocated to coin DB specific cache (MiB)
static const int64_t nMaxBlockDBCache
Max memory allocated to block tree DB specific cache, if no -txindex (MiB)
static const int64_t nMaxTxIndexCache
Max memory allocated to block tree DB specific cache, if -txindex (MiB)
static const int64_t nDefaultDbCache
-dbcache default (MiB)
static const int64_t max_filter_index_cache
Max memory allocated to all block filter index caches combined in MiB.
static constexpr bool DEFAULT_TXINDEX