mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
add constants for shared (GUI/core) -dbcache settings
- adds nDefaultDbCache, nMaxDbCache and nMinDbCache in txdb.h
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user