aboutsummaryrefslogtreecommitdiff
path: root/src/chainparamsbase.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-10-17 08:47:11 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2014-10-17 08:47:11 +0200
commit494ff05a4cd9d89857342d5c843ed480afcc8fe7 (patch)
treedbab4f9ea8dfe172b9766b3df0b7cb87ea908b53 /src/chainparamsbase.h
parentc2fc9729d15a6a9b1888ec03daef38cf1e2740a9 (diff)
parentca3ce0fa037a94f2c357ad04d42e5f526cbcb78e (diff)
Merge pull request #4804 from jtimon/chainparams3
Remove CBaseChainParams::NetworkID()
Diffstat (limited to 'src/chainparamsbase.h')
-rw-r--r--src/chainparamsbase.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/chainparamsbase.h b/src/chainparamsbase.h
index cc154cf501..911d1181ac 100644
--- a/src/chainparamsbase.h
+++ b/src/chainparamsbase.h
@@ -26,7 +26,6 @@ public:
const std::string& DataDir() const { return strDataDir; }
int RPCPort() const { return nRPCPort; }
- Network NetworkID() const { return networkID; }
protected:
CBaseChainParams() {}
@@ -46,7 +45,13 @@ const CBaseChainParams& BaseParams();
void SelectBaseParams(CBaseChainParams::Network network);
/**
- * Looks for -regtest or -testnet and then calls SelectParams as appropriate.
+ * Looks for -regtest or -testnet and returns the appropriate Network ID.
+ * Returns MAX_NETWORK_TYPES if an invalid combination is given.
+ */
+CBaseChainParams::Network NetworkIdFromCommandLine();
+
+/**
+ * Calls NetworkIdFromCommandLine() and then calls SelectParams as appropriate.
* Returns false if an invalid combination is given.
*/
bool SelectBaseParamsFromCommandLine();