Move ChainNameFromCommandLine into ArgsManager and rename to GetChainName

This commit is contained in:
Anthony Towns
2018-03-29 15:00:00 +10:00
parent 5f0c6a7b0e
commit 11b6b5b86e
9 changed files with 27 additions and 27 deletions

View File

@@ -54,10 +54,4 @@ const CBaseChainParams& BaseParams();
/** Sets the params returned by Params() to those for the given network. */
void SelectBaseParams(const std::string& chain);
/**
* Looks for -regtest, -testnet and returns the appropriate BIP70 chain name.
* @return CBaseChainParams::MAX_NETWORK_TYPES if an invalid combination is given. CBaseChainParams::MAIN by default.
*/
std::string ChainNameFromCommandLine();
#endif // BITCOIN_CHAINPARAMSBASE_H