mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
[upstream #8994] Testchains: Generic selection with -chain=<str> in addition of -testnet and -regtest
This commit is contained in:
parent
5d4dfc57cd
commit
a73073011e
6 changed files with 8 additions and 7 deletions
|
|
@ -108,7 +108,7 @@ static int AppInitRPC(int argc, char* argv[])
|
|||
fprintf(stderr,"Error reading configuration file: %s\n", e.what());
|
||||
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(ChainNameFromCommandLine());
|
||||
} catch (const std::exception& e) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue