22 strUsage +=
HelpMessageOpt(
"-regtest",
"Enter regression test mode, which uses a special chain in which blocks can be solved instantly. " 23 "This is intended for regression testing tools and app development.");
85 throw std::runtime_error(
strprintf(
"%s: Unknown chain %s.", __func__, chain));
98 if (fTestNet && fRegTest)
99 throw std::runtime_error(
"Invalid combination of -regtest and -testnet.");
std::string HelpMessageOpt(const std::string &option, const std::string &message)
void AppendParamsHelpMessages(std::string &strUsage, bool debugHelp)
static const std::string TESTNET
const CBaseChainParams & BaseParams()
static CBaseRegTestParams regTestParams
bool AreBaseParamsConfigured()
bool GetBoolArg(const std::string &strArg, bool fDefault)
static CBaseMainParams mainParams
static CBaseTestNetParams testNetParams
std::string ChainNameFromCommandLine()
static const std::string MAIN
void SelectBaseParams(const std::string &chain)
static CBaseChainParams * pCurrentBaseParams
std::string HelpMessageGroup(const std::string &message)
std::string _(const char *psz)
static const std::string REGTEST