Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 1,808 Lines • ▼ Show 20 Lines | #endif | ||||
LogPrintf("Using data directory %s\n", GetDataDir().string()); | LogPrintf("Using data directory %s\n", GetDataDir().string()); | ||||
LogPrintf( | LogPrintf( | ||||
"Using config file %s\n", | "Using config file %s\n", | ||||
GetConfigFile(gArgs.GetArg("-conf", BITCOIN_CONF_FILENAME)).string()); | GetConfigFile(gArgs.GetArg("-conf", BITCOIN_CONF_FILENAME)).string()); | ||||
LogPrintf("Using at most %i automatic connections (%i file descriptors " | LogPrintf("Using at most %i automatic connections (%i file descriptors " | ||||
"available)\n", | "available)\n", | ||||
nMaxConnections, nFD); | nMaxConnections, nFD); | ||||
// Warn about relative -datadir path. | |||||
if (gArgs.IsArgSet("-datadir") && | |||||
!fs::path(gArgs.GetArg("-datadir", "")).is_absolute()) { | |||||
LogPrintf("Warning: relative datadir option '%s' specified, which will " | |||||
"be interpreted relative to the current working directory " | |||||
"'%s'. This is fragile, because if bitcoin is started in the " | |||||
"future from a different location, it will be unable to " | |||||
"locate the current data files. There could also be data " | |||||
"loss if bitcoin is started while in a temporary " | |||||
"directory.\n", | |||||
gArgs.GetArg("-datadir", ""), fs::current_path().string()); | |||||
} | |||||
InitSignatureCache(); | InitSignatureCache(); | ||||
InitScriptExecutionCache(); | InitScriptExecutionCache(); | ||||
LogPrintf("Using %u threads for script verification\n", | LogPrintf("Using %u threads for script verification\n", | ||||
nScriptCheckThreads); | nScriptCheckThreads); | ||||
if (nScriptCheckThreads) { | if (nScriptCheckThreads) { | ||||
for (int i = 0; i < nScriptCheckThreads - 1; i++) { | for (int i = 0; i < nScriptCheckThreads - 1; i++) { | ||||
threadGroup.create_thread(&ThreadScriptCheck); | threadGroup.create_thread(&ThreadScriptCheck); | ||||
▲ Show 20 Lines • Show All 580 Lines • Show Last 20 Lines |