Move ChainNameFromCommandLine into ArgsManager and rename to GetChainName

This commit is contained in:
Anthony Towns
2018-03-29 15:00:00 +10:00
parent 5f0c6a7b0e
commit 11b6b5b86e
9 changed files with 27 additions and 27 deletions

View File

@@ -44,7 +44,7 @@ static int AppInitRawTx(int argc, char* argv[])
// Check for -testnet or -regtest parameter (Params() calls are only valid after this clause)
try {
SelectParams(ChainNameFromCommandLine());
SelectParams(gArgs.GetChainName());
} catch (const std::exception& e) {
fprintf(stderr, "Error: %s\n", e.what());
return EXIT_FAILURE;