38 if constexpr (
sizeof(
void*) >= 8) {
static constexpr size_t MAX_32BIT_DBCACHE
Maximum dbcache size on 32-bit systems.
static constexpr size_t HIGH_DEFAULT_DBCACHE
Larger default dbcache on 64-bit systems with enough RAM.
static constexpr size_t MAX_TXOSPENDER_INDEX_CACHE
Max memory allocated to tx spenderindex DB specific cache in bytes.
static constexpr uint64_t HIGH_DEFAULT_DBCACHE_MIN_TOTAL_RAM
Minimum detected RAM required for HIGH_DEFAULT_DBCACHE.
static constexpr size_t MAX_FILTER_INDEX_CACHE
Max memory allocated to all block filter index caches combined in bytes.
static constexpr size_t MAX_TX_INDEX_CACHE
Max memory allocated to tx index DB specific cache in bytes.
int64_t GetIntArg(const std::string &strArg, int64_t nDefault) const
bool GetBoolArg(const std::string &strArg, bool fDefault) const
Return boolean argument or default value.
std::optional< size_t > GetTotalRAM()
Return the total RAM available on the current system, if detectable.
void InitWarning(const bilingual_str &str)
Show warning message.
constexpr bool ShouldWarnOversizedDbCache(size_t dbcache, size_t total_ram) noexcept
size_t CalculateDbCacheBytes(const ArgsManager &args)
CacheSizes CalculateCacheSizes(const ArgsManager &args, size_t n_indexes)
void LogOversizedDbCache(const ArgsManager &args) noexcept
size_t GetDefaultDBCache()
static constexpr size_t MIN_DB_CACHE
min. -dbcache (bytes)
static constexpr size_t DEFAULT_DB_CACHE
-dbcache default (bytes)
consteval auto _(util::TranslatedLiteral str)
static constexpr bool DEFAULT_TXINDEX
static constexpr bool DEFAULT_TXOSPENDERINDEX
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.