kernel: Move default cache constants to caches

They are not related to the txdb, so a better place for them is the
new kernel and node cache file. Re-use the default amount of kernel
cache for the default node cache.
This commit is contained in:
TheCharlatan
2024-11-22 22:52:02 +01:00
parent 8826cae285
commit 65cde3621d
8 changed files with 18 additions and 16 deletions

View File

@@ -9,6 +9,8 @@
#include <algorithm>
//! Suggested default amount of cache reserved for the kernel (MiB)
static constexpr int64_t DEFAULT_KERNEL_CACHE{450};
//! Max memory allocated to block tree DB specific cache (bytes)
static constexpr size_t MAX_BLOCK_DB_CACHE{2_MiB};
//! Max memory allocated to coin DB specific cache (bytes)