17 argsman.
AddArg(
"-regtest",
"Enter regression test mode, which uses a special chain in which blocks can be solved instantly. "
44 return std::make_unique<CBaseChainParams>(
"", 8332);
46 return std::make_unique<CBaseChainParams>(
"testnet3", 18332);
48 return std::make_unique<CBaseChainParams>(
"testnet4", 48332);
50 return std::make_unique<CBaseChainParams>(
"signet", 38332);
52 return std::make_unique<CBaseChainParams>(
"regtest", 18443);
const CBaseChainParams & BaseParams()
Return the currently selected parameters.
std::unique_ptr< CBaseChainParams > CreateBaseChainParams(const ChainType chain)
Port numbers for incoming Tor connections (8334, 18334, 38334, 48334, 18445) have been chosen arbitra...
static std::unique_ptr< CBaseChainParams > globalChainBaseParams
void SetupChainParamsBaseOptions(ArgsManager &argsman)
Set the arguments for chainparams.
void SelectBaseParams(const ChainType chain)
Sets the params returned by Params() to those for the given chain.
#define LIST_CHAIN_NAMES
List of possible chain / network names
std::string ChainTypeToString(ChainType chain)
@ ALLOW_ANY
disable validation
@ DISALLOW_NEGATION
disallow -nofoo syntax
void SelectConfigNetwork(const std::string &network)
Select the network in use.
void AddArg(const std::string &name, const std::string &help, unsigned int flags, const OptionsCategory &cat)
Add argument.
CBaseChainParams defines the base parameters (shared between bitcoin-cli and bitcoind) of a given ins...