Changeset View
Changeset View
Standalone View
Standalone View
src/chainparamsbase.h
Show All 34 Lines | |||||
* Creates and returns a std::unique_ptr<CBaseChainParams> of the chosen chain. | * Creates and returns a std::unique_ptr<CBaseChainParams> of the chosen chain. | ||||
* @returns a CBaseChainParams* of the chosen chain. | * @returns a CBaseChainParams* of the chosen chain. | ||||
* @throws a std::runtime_error if the chain is not supported. | * @throws a std::runtime_error if the chain is not supported. | ||||
*/ | */ | ||||
std::unique_ptr<CBaseChainParams> | std::unique_ptr<CBaseChainParams> | ||||
CreateBaseChainParams(const std::string &chain); | CreateBaseChainParams(const std::string &chain); | ||||
/** | /** | ||||
* Append the help messages for the chainparams options to the | * Set the arguments for chainparams. | ||||
* parameter string. | |||||
*/ | */ | ||||
void AppendParamsHelpMessages(std::string &strUsage, bool debugHelp = true); | void SetupChainParamsBaseOptions(); | ||||
/** | /** | ||||
* 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); | ||||
#endif // BITCOIN_CHAINPARAMSBASE_H | #endif // BITCOIN_CHAINPARAMSBASE_H |