aboutsummaryrefslogtreecommitdiff
path: root/src/chainparamsbase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/chainparamsbase.cpp')
-rw-r--r--src/chainparamsbase.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/chainparamsbase.cpp b/src/chainparamsbase.cpp
index 05ef5dd463..f275bd544f 100644
--- a/src/chainparamsbase.cpp
+++ b/src/chainparamsbase.cpp
@@ -83,23 +83,23 @@ void SelectBaseParams(CBaseChainParams::Network network)
}
}
-CBaseChainParams::Network CBaseChainParams::NetworkIdFromCommandLine()
+CBaseChainParams::Network NetworkIdFromCommandLine()
{
bool fRegTest = GetBoolArg("-regtest", false);
bool fTestNet = GetBoolArg("-testnet", false);
if (fTestNet && fRegTest)
- return MAX_NETWORK_TYPES;
+ return CBaseChainParams::MAX_NETWORK_TYPES;
if (fRegTest)
- return REGTEST;
+ return CBaseChainParams::REGTEST;
if (fTestNet)
- return TESTNET;
- return MAIN;
+ return CBaseChainParams::TESTNET;
+ return CBaseChainParams::MAIN;
}
bool SelectBaseParamsFromCommandLine()
{
- CBaseChainParams::Network network = CBaseChainParams::NetworkIdFromCommandLine();
+ CBaseChainParams::Network network = NetworkIdFromCommandLine();
if (network == CBaseChainParams::MAX_NETWORK_TYPES)
return false;