Changeset View
Changeset View
Standalone View
Standalone View
src/bitcoind.cpp
Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Lines | static bool AppInit(int argc, char *argv[]) { | ||||
try { | try { | ||||
if (!fs::is_directory(GetDataDir(false))) { | if (!fs::is_directory(GetDataDir(false))) { | ||||
fprintf(stderr, | fprintf(stderr, | ||||
"Error: Specified data directory \"%s\" does not exist.\n", | "Error: Specified data directory \"%s\" does not exist.\n", | ||||
gArgs.GetArg("-datadir", "").c_str()); | gArgs.GetArg("-datadir", "").c_str()); | ||||
return false; | return false; | ||||
} | } | ||||
if (!gArgs.ReadConfigFiles(error)) { | if (!gArgs.ReadConfigFiles(error, true)) { | ||||
fprintf(stderr, "Error reading configuration file: %s\n", | fprintf(stderr, "Error reading configuration file: %s\n", | ||||
error.c_str()); | error.c_str()); | ||||
return false; | return false; | ||||
} | } | ||||
// Check for -testnet or -regtest parameter (Params() calls are only | // Check for -testnet or -regtest parameter (Params() calls are only | ||||
// valid after this clause) | // valid after this clause) | ||||
try { | try { | ||||
SelectParams(gArgs.GetChainName()); | SelectParams(gArgs.GetChainName()); | ||||
▲ Show 20 Lines • Show All 109 Lines • Show Last 20 Lines |