Merge 8219893825 into merged_master (Bitcoin PR #19993)

This commit is contained in:
Andrew Poelstra 2020-11-29 18:52:06 +00:00
commit c1f937fe53
11 changed files with 35 additions and 52 deletions

View file

@ -87,11 +87,6 @@ static void libevent_log_cb(int severity, const char *msg)
}
}
//////////////////////////////////////////////////////////////////////////////
//
// Start
//
//
// Exception thrown on connection error. This error is used to determine
// when to wait if -rpcwait is given.
@ -112,9 +107,6 @@ public:
//
static int AppInitRPC(int argc, char* argv[])
{
//
// Parameters
//
SetupCliArgs(gArgs);
std::string error;
if (!gArgs.ParseParameters(argc, argv, error)) {
@ -147,7 +139,7 @@ static int AppInitRPC(int argc, char* argv[])
tfm::format(std::cerr, "Error reading configuration file: %s\n", error);
return EXIT_FAILURE;
}
// Check for -chain, -testnet or -regtest parameter (BaseParams() calls are only valid after this clause)
// Check for chain settings (BaseParams() calls are only valid after this clause)
try {
SelectBaseParams(gArgs.GetChainName());
} catch (const std::exception& e) {