Changeset View
Changeset View
Standalone View
Standalone View
src/bitcoind.cpp
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | static bool AppInit(int argc, char *argv[]) { | ||||
util::ThreadSetInternalName("init"); | util::ThreadSetInternalName("init"); | ||||
// | // | ||||
// Parameters | // Parameters | ||||
// | // | ||||
// If Qt is used, parameters/bitcoin.conf are parsed in qt/bitcoin.cpp's | // If Qt is used, parameters/bitcoin.conf are parsed in qt/bitcoin.cpp's | ||||
// main() | // main() | ||||
SetupServerArgs(); | SetupServerArgs(node); | ||||
std::string error; | std::string error; | ||||
if (!gArgs.ParseParameters(argc, argv, error)) { | if (!gArgs.ParseParameters(argc, argv, error)) { | ||||
return InitError(Untranslated( | return InitError(Untranslated( | ||||
strprintf("Error parsing command line arguments: %s\n", error))); | strprintf("Error parsing command line arguments: %s\n", error))); | ||||
} | } | ||||
// Process help and version before taking care about datadir | // Process help and version before taking care about datadir | ||||
if (HelpRequested(gArgs) || gArgs.IsArgSet("-version")) { | if (HelpRequested(gArgs) || gArgs.IsArgSet("-version")) { | ||||
▲ Show 20 Lines • Show All 138 Lines • Show Last 20 Lines |