|
|
|
@ -196,7 +196,7 @@ std::string HelpMessage(HelpMessageMode hmm)
@@ -196,7 +196,7 @@ std::string HelpMessage(HelpMessageMode hmm)
|
|
|
|
|
strUsage += " -testnet " + _("Use the test network") + "\n"; |
|
|
|
|
strUsage += " -pid=<file> " + _("Specify pid file (default: bitcoind.pid)") + "\n"; |
|
|
|
|
strUsage += " -gen " + _("Generate coins (default: 0)") + "\n"; |
|
|
|
|
strUsage += " -dbcache=<n> " + _("Set database cache size in megabytes (default: 25)") + "\n"; |
|
|
|
|
strUsage += " -dbcache=<n> " + _("Set database cache size in megabytes (default: 100)") + "\n"; |
|
|
|
|
strUsage += " -timeout=<n> " + _("Specify connection timeout in milliseconds (default: 5000)") + "\n"; |
|
|
|
|
strUsage += " -proxy=<ip:port> " + _("Connect through SOCKS proxy") + "\n"; |
|
|
|
|
strUsage += " -socks=<n> " + _("Select SOCKS version for -proxy (4 or 5, default: 5)") + "\n"; |
|
|
|
@ -776,7 +776,7 @@ bool AppInit2(boost::thread_group& threadGroup)
@@ -776,7 +776,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; |
|
|
|
|