MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / GetDefaultDBCache

Function GetDefaultDBCache

src/node/caches.cpp:36–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34
35namespace node {
36size_t GetDefaultDBCache()
37{
38 if constexpr (sizeof(void*) >= 8) {
39 if (GetTotalRAM().value_or(0) >= HIGH_DEFAULT_DBCACHE_MIN_TOTAL_RAM) {
40 return HIGH_DEFAULT_DBCACHE;
41 }
42 }
43 return DEFAULT_DB_CACHE;
44}
45
46size_t CalculateDbCacheBytes(const ArgsManager& args)
47{

Callers 3

SetupServerArgsFunction · 0.85
getOptionMethod · 0.85
CalculateDbCacheBytesFunction · 0.85

Calls 2

GetTotalRAMFunction · 0.85
value_orMethod · 0.45

Tested by

no test coverage detected