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/optionsdialog.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/optionsdialog.cpp')
| -rw-r--r-- | src/qt/optionsdialog.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/qt/optionsdialog.cpp b/src/qt/optionsdialog.cpp index f4eb7ef07..e31542961 100644 --- a/src/qt/optionsdialog.cpp +++ b/src/qt/optionsdialog.cpp @@ -14,8 +14,9 @@ #include "monitoreddatamapper.h" #include "optionsmodel.h" +#include "main.h" // for CTransaction::nMinTxFee #include "netbase.h" -#include "main.h" +#include "txdb.h" // for -dbcache defaults #include <QDir> #include <QIntValidator> @@ -34,7 +35,8 @@ OptionsDialog::OptionsDialog(QWidget *parent) : GUIUtil::restoreWindowGeometry("nOptionsDialogWindow", this->size(), this); /* Main elements init */ - ui->databaseCache->setMaximum(sizeof(void*) > 4 ? 4096 : 1024); + ui->databaseCache->setMinimum(nMinDbCache); + ui->databaseCache->setMaximum(nMaxDbCache); /* Network elements init */ #ifndef USE_UPNP |