diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-02-18 08:35:19 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-02-18 08:35:45 +0100 |
| commit | bd8e3751d7cec48428283d29682db7b80474f2ca (patch) | |
| tree | 7d90efc9dc0241fadb3d0946f4d0786c29584c76 /src/qt/optionsmodel.cpp | |
| parent | Merge pull request #3691 (diff) | |
| parent | add constants for shared (GUI/core) -dbcache settings (diff) | |
| download | discoin-bd8e3751d7cec48428283d29682db7b80474f2ca.tar.xz discoin-bd8e3751d7cec48428283d29682db7b80474f2ca.zip | |
Merge pull request #3687
82e9600 add constants for shared (GUI/core) -dbcache settings (Philip Kaufmann)
879b390 Increase default dbcache to 100 MiB (Pieter Wuille)
Diffstat (limited to 'src/qt/optionsmodel.cpp')
| -rw-r--r-- | src/qt/optionsmodel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qt/optionsmodel.cpp b/src/qt/optionsmodel.cpp index eff73b770..1a460b927 100644 --- a/src/qt/optionsmodel.cpp +++ b/src/qt/optionsmodel.cpp @@ -14,6 +14,7 @@ #include "init.h" #include "main.h" #include "net.h" +#include "txdb.h" // for -dbcache defaults #ifdef ENABLE_WALLET #include "wallet.h" #include "walletdb.h" @@ -84,7 +85,7 @@ void OptionsModel::Init() #endif if (!settings.contains("nDatabaseCache")) - settings.setValue("nDatabaseCache", 25); + settings.setValue("nDatabaseCache", nDefaultDbCache); if (!SoftSetArg("-dbcache", settings.value("nDatabaseCache").toString().toStdString())) strOverriddenByCommandLine += "-dbcache "; |