20 argsman.AddArg(
"-regtest",
"Enter regression test mode, which uses a special chain in which blocks can be solved instantly. "
65 return std::make_unique<CBaseChainParams>(
"", 8332);
67 return std::make_unique<CBaseChainParams>(
"testnet3", 18332);
69 return std::make_unique<CBaseChainParams>(
"testnet4", 48332);
73 return std::make_unique<CBaseChainParams>(
"regtest", 18443);
const CBaseChainParams & BaseParams()
Return the currently selected parameters.
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.
std::unique_ptr< CBaseChainParams > CreateBaseChainParams(const ArgsManager &args, const ChainType chain)
Port numbers for incoming Tor connections (8334, 18334, 38334, 48334, 18445) have been chosen arbitra...
std::string GetSignetDataDir(const ArgsManager &args)
#define LIST_CHAIN_NAMES
List of possible chain / network names
std::string ChainTypeToString(ChainType chain)
@ ALLOW_ANY
disable validation
@ DISALLOW_NEGATION
disallow -nofoo syntax
std::string GetArg(const std::string &strArg, const std::string &strDefault) const EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Return string argument or default value.
void SelectConfigNetwork(const std::string &network) EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Select the network in use.
CBaseChainParams defines the base parameters (shared between bitcoin-cli and bitcoind) of a given ins...
std::string HexStr(const std::span< const uint8_t > s)
Convert a span of bytes to a lower-case hexadecimal string.
MessageStartChars GetSignetMessageStart(const std::vector< uint8_t > &signet_challenge)
Return the message start bytes for a signet: the first four bytes of the double-SHA256 hash of the se...
const std::vector< uint8_t > SIGNET_DEFAULT_CHALLENGE
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.