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:
ummjackson 2014-02-18 19:27:49 +11:00
commit d5f2a4eb28

View file

@ -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;