mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-02 01:04:43 +02:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user