diff options
| author | Anthony Towns <[email protected]> | 2018-03-29 15:00:00 +1000 |
|---|---|---|
| committer | Anthony Towns <[email protected]> | 2018-04-06 04:46:02 +1000 |
| commit | 11b6b5b86e7dab05be38d614891dd6e6031d04a4 (patch) | |
| tree | 3401eabbf1991c95c811a03984f8015429e39b0b /src/bitcoin-cli.cpp | |
| parent | Merge #10244: Refactor: separate gui from wallet and node (diff) | |
| download | discoin-11b6b5b86e7dab05be38d614891dd6e6031d04a4.tar.xz discoin-11b6b5b86e7dab05be38d614891dd6e6031d04a4.zip | |
Move ChainNameFromCommandLine into ArgsManager and rename to GetChainName
Diffstat (limited to 'src/bitcoin-cli.cpp')
| -rw-r--r-- | src/bitcoin-cli.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitcoin-cli.cpp b/src/bitcoin-cli.cpp index 618b0d16b..26a923130 100644 --- a/src/bitcoin-cli.cpp +++ b/src/bitcoin-cli.cpp @@ -114,7 +114,7 @@ static int AppInitRPC(int argc, char* argv[]) } // Check for -testnet or -regtest parameter (BaseParams() calls are only valid after this clause) try { - SelectBaseParams(ChainNameFromCommandLine()); + SelectBaseParams(gArgs.GetChainName()); } catch (const std::exception& e) { fprintf(stderr, "Error: %s\n", e.what()); return EXIT_FAILURE; |