File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ void OptionsModel::Init()
85
85
#endif
86
86
87
87
if (!settings.contains (" nDatabaseCache" ))
88
- settings.setValue (" nDatabaseCache" , nDefaultDbCache);
88
+ settings.setValue (" nDatabaseCache" , (qint64) nDefaultDbCache);
89
89
if (!SoftSetArg (" -dbcache" , settings.value (" nDatabaseCache" ).toString ().toStdString ()))
90
90
strOverriddenByCommandLine += " -dbcache " ;
91
91
Original file line number Diff line number Diff line change @@ -19,11 +19,11 @@ class CCoins;
19
19
class uint256 ;
20
20
21
21
// -dbcache default (MiB)
22
- static const int nDefaultDbCache = 100 ;
22
+ static const int64_t nDefaultDbCache = 100 ;
23
23
// 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 ;
25
25
// min. -dbcache in (MiB)
26
- static const int nMinDbCache = 4 ;
26
+ static const int64_t nMinDbCache = 4 ;
27
27
28
28
/* * CCoinsView backed by the LevelDB coin database (chainstate/) */
29
29
class CCoinsViewDB : public CCoinsView
You can’t perform that action at this time.
0 commit comments