Changeset View
Changeset View
Standalone View
Standalone View
src/chainparamsbase.h
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | |||||
* Return the currently selected parameters. This won't change after app | * Return the currently selected parameters. This won't change after app | ||||
* startup, except for unit tests. | * startup, except for unit tests. | ||||
*/ | */ | ||||
const CBaseChainParams &BaseParams(); | const CBaseChainParams &BaseParams(); | ||||
/** Sets the params returned by Params() to those for the given network. */ | /** Sets the params returned by Params() to those for the given network. */ | ||||
void SelectBaseParams(const std::string &chain); | 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 | #endif // BITCOIN_CHAINPARAMSBASE_H |