aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoind.cpp
diff options
context:
space:
mode:
authorAnthony Towns <[email protected]>2018-03-29 15:00:00 +1000
committerAnthony Towns <[email protected]>2018-04-06 04:46:02 +1000
commit11b6b5b86e7dab05be38d614891dd6e6031d04a4 (patch)
tree3401eabbf1991c95c811a03984f8015429e39b0b /src/bitcoind.cpp
parentMerge #10244: Refactor: separate gui from wallet and node (diff)
downloaddiscoin-11b6b5b86e7dab05be38d614891dd6e6031d04a4.tar.xz
discoin-11b6b5b86e7dab05be38d614891dd6e6031d04a4.zip
Move ChainNameFromCommandLine into ArgsManager and rename to GetChainName
Diffstat (limited to 'src/bitcoind.cpp')
-rw-r--r--src/bitcoind.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitcoind.cpp b/src/bitcoind.cpp
index 58518d611..8d08f413a 100644
--- a/src/bitcoind.cpp
+++ b/src/bitcoind.cpp
@@ -111,7 +111,7 @@ bool AppInit(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 false;