Merge pull request #255 from dogecoin/1.5.2-dbcache
Increase -dbcache to 100MB default to help with initial sync
This commit is contained in:
commit
d5f2a4eb28
|
@ -304,7 +304,7 @@ std::string HelpMessage()
|
|||
" -gen " + _("Generate coins (default: 0)") + "\n" +
|
||||
" -datadir=<dir> " + _("Specify data directory") + "\n" +
|
||||
" -wallet=<file> " + _("Specify wallet file (within data directory)") + "\n";
|
||||
" -dbcache=<n> " + _("Set database cache size in megabytes (default: 25)") + "\n" +
|
||||
" -dbcache=<n> " + _("Set database cache size in megabytes (default: 100)") + "\n" +
|
||||
" -timeout=<n> " + _("Specify connection timeout in milliseconds (default: 5000)") + "\n" +
|
||||
" -proxy=<ip:port> " + _("Connect through socks proxy") + "\n" +
|
||||
" -socks=<n> " + _("Select the version of socks proxy to use (4-5, default: 5)") + "\n" +
|
||||
|
@ -864,7 +864,7 @@ bool AppInit2(boost::thread_group& threadGroup)
|
|||
}
|
||||
|
||||
// cache size calculations
|
||||
size_t nTotalCache = GetArg("-dbcache", 25) << 20;
|
||||
size_t nTotalCache = GetArg("-dbcache", 100) << 20;
|
||||
if (nTotalCache < (1 << 22))
|
||||
nTotalCache = (1 << 22); // total cache cannot be less than 4 MiB
|
||||
size_t nBlockTreeDBCache = nTotalCache / 8;
|
||||
|
|
Loading…
Reference in a new issue