From 027cac852796f643e2b6036fd3652dd3ca7785a5 Mon Sep 17 00:00:00 2001 From: Andrew Toth Date: Fri, 27 Feb 2026 09:18:41 -0500 Subject: [PATCH] qt: show GetDefaultDBCache() in settings --- src/qt/optionsmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qt/optionsmodel.cpp b/src/qt/optionsmodel.cpp index cfbc350f091..d52c65d6aeb 100644 --- a/src/qt/optionsmodel.cpp +++ b/src/qt/optionsmodel.cpp @@ -469,7 +469,7 @@ QVariant OptionsModel::getOption(OptionID option, const std::string& suffix) con suffix.empty() ? getOption(option, "-prev") : DEFAULT_PRUNE_TARGET_GB; case DatabaseCache: - return qlonglong(SettingTo(setting(), DEFAULT_DB_CACHE >> 20)); + return qlonglong(SettingTo(setting(), node::GetDefaultDBCache() >> 20)); case ThreadsScriptVerif: return qlonglong(SettingTo(setting(), DEFAULT_SCRIPTCHECK_THREADS)); case Listen: