46 throw std::invalid_argument(
47 strprintf(
"%s: Invalid ChainType value", __func__));
std::unique_ptr< const CChainParams > CreateChainParams(const ArgsManager &args, const ChainType chain)
Creates and returns a std::unique_ptr<CChainParams> of the chosen chain.
void ReadChainArgs(const ArgsManager &args, CChainParams::ChainOptions &options)
static std::unique_ptr< const CChainParams > globalChainParams
void SelectParams(const ChainType chain)
Sets the params returned by Params() to those for the given BIP70 chain name.
const CChainParams & Params()
Return the currently selected parameters.
void SelectBaseParams(const ChainType chain)
Sets the params returned by Params() to those for the given chain.
bool GetBoolArg(const std::string &strArg, bool fDefault) const
Return boolean argument or default value.
CChainParams defines various tweakable parameters of a given instance of the Bitcoin system.
static std::unique_ptr< const CChainParams > TestNet(const ChainOptions &options)
static std::unique_ptr< const CChainParams > RegTest(const ChainOptions &options)
static std::unique_ptr< const CChainParams > Main(const ChainOptions &options)
constexpr bool DEFAULT_ECASH