Skip to content

Commit 7f080fb

Browse files
committed
Merge pull request #3703
ad54a9b Change new constants in txdb.h to int64_t (Wladimir J. van der Laan)
2 parents 38ebd0f + ad54a9b commit 7f080fb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/qt/optionsmodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ void OptionsModel::Init()
8585
#endif
8686

8787
if (!settings.contains("nDatabaseCache"))
88-
settings.setValue("nDatabaseCache", nDefaultDbCache);
88+
settings.setValue("nDatabaseCache", (qint64)nDefaultDbCache);
8989
if (!SoftSetArg("-dbcache", settings.value("nDatabaseCache").toString().toStdString()))
9090
strOverriddenByCommandLine += "-dbcache ";
9191

src/txdb.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ class CCoins;
1919
class uint256;
2020

2121
// -dbcache default (MiB)
22-
static const int nDefaultDbCache = 100;
22+
static const int64_t nDefaultDbCache = 100;
2323
// max. -dbcache in (MiB)
24-
static const int nMaxDbCache = sizeof(void*) > 4 ? 4096 : 1024;
24+
static const int64_t nMaxDbCache = sizeof(void*) > 4 ? 4096 : 1024;
2525
// min. -dbcache in (MiB)
26-
static const int nMinDbCache = 4;
26+
static const int64_t nMinDbCache = 4;
2727

2828
/** CCoinsView backed by the LevelDB coin database (chainstate/) */
2929
class CCoinsViewDB : public CCoinsView

0 commit comments

Comments
 (0)