Testchains: Generic selection with -chain=<str> in addition of -testnet and -regtest

This commit is contained in:
Jorge Timón 2016-10-13 22:38:10 +02:00
parent 56515c34cb
commit c0c1e38647
No known key found for this signature in database
GPG key ID: A4F5D141C01A0387
7 changed files with 14 additions and 11 deletions

View file

@ -129,7 +129,7 @@ static int AppInitRPC(int argc, char* argv[])
fprintf(stderr, "Error reading configuration file: %s\n", error.c_str());
return EXIT_FAILURE;
}
// Check for -testnet or -regtest parameter (BaseParams() calls are only valid after this clause)
// Check for -chain, -testnet or -regtest parameter (BaseParams() calls are only valid after this clause)
try {
SelectBaseParams(gArgs.GetChainName());
} catch (const std::exception& e) {