23 strUsage +=
HelpMessageOpt(
"-regtest",
"Enter regression test mode, which uses a special chain in which blocks can be solved instantly. " 24 "This is intended for regression testing tools and app development.");
66 static std::unique_ptr<CBaseChainParams> globalChainBaseParams;
70 assert(globalChainBaseParams);
71 return *globalChainBaseParams;
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)
Format a string to be used as option description in help messages.
std::unique_ptr< CBaseChainParams > CreateBaseChainParams(const std::string &chain)
Creates and returns a std::unique_ptr<CBaseChainParams> of the chosen chain.
void AppendParamsHelpMessages(std::string &strUsage, bool debugHelp)
Append the help messages for the chainparams options to the parameter string.
static const std::string REGTEST
static const std::string UNITTEST
const CBaseChainParams & BaseParams()
Return the currently selected parameters.
bool GetBoolArg(const std::string &strArg, bool fDefault)
Return boolean argument or default value.
assert(len-trim+(2 *lenIndices)<=WIDTH)
static const std::string MAIN
BIP70 chain name strings (main, test or regtest)
CBaseChainParams defines the base parameters (shared between fabcoin-cli and fabcoind) of a given ins...
std::string ChainNameFromCommandLine()
Looks for -regtest, -testnet and returns the appropriate BIP70 chain name.
static const std::string TESTNET
void SelectBaseParams(const std::string &chain)
Sets the params returned by Params() to those for the given network.
std::string HelpMessageGroup(const std::string &message)
Format a string to be used as group of options in help messages.
std::string _(const char *psz)
Translation function: Call Translate signal on UI interface, which returns a boost::optional result...