mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Chainparams: Generic selection with -chain=<chainString> in addition of -testnet and -regtest
This commit is contained in:
parent
595f6bda3a
commit
6275ff8ed6
6 changed files with 8 additions and 7 deletions
|
|
@ -99,7 +99,7 @@ static bool AppInitRPC(int argc, char* argv[])
|
|||
fprintf(stderr,"Error reading configuration file: %s\n", e.what());
|
||||
return false;
|
||||
}
|
||||
// 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