|
|
|
@ -26,11 +26,6 @@ public:
@@ -26,11 +26,6 @@ public:
|
|
|
|
|
const std::string& DataDir() const { return strDataDir; } |
|
|
|
|
int RPCPort() const { return nRPCPort; } |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Looks for -regtest or -testnet and returns the appropriate Network ID. |
|
|
|
|
* Returns MAX_NETWORK_TYPES if an invalid combination is given. |
|
|
|
|
*/ |
|
|
|
|
static Network NetworkIdFromCommandLine(); |
|
|
|
|
protected: |
|
|
|
|
CBaseChainParams() {} |
|
|
|
|
|
|
|
|
@ -49,7 +44,13 @@ const CBaseChainParams& BaseParams();
@@ -49,7 +44,13 @@ const CBaseChainParams& BaseParams();
|
|
|
|
|
void SelectBaseParams(CBaseChainParams::Network network); |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Calls CBaseChainParams::NetworkIdFromCommandLine() 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(); |
|
|
|
|