From 654472ba38951540643603467d2032dab2084d5e Mon Sep 17 00:00:00 2001 From: TheCharlatan Date: Fri, 22 Nov 2024 22:52:02 +0100 Subject: [PATCH] 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. --- src/bitcoin-chainstate.cpp | 4 ++-- src/init.cpp | 2 +- src/kernel/caches.h | 2 ++ src/node/caches.cpp | 5 ++--- src/node/caches.h | 5 +++++ src/qt/optionsdialog.cpp | 6 +++--- src/qt/optionsmodel.cpp | 6 +++--- src/txdb.h | 4 ---- 8 files changed, 18 insertions(+), 16 deletions(-) diff --git a/src/bitcoin-chainstate.cpp b/src/bitcoin-chainstate.cpp index 3b551e5c17848d..50c6e0b6f17d0a 100644 --- a/src/bitcoin-chainstate.cpp +++ b/src/bitcoin-chainstate.cpp @@ -19,9 +19,9 @@ #include #include +#include #include #include -#include #include #include #include