 |
Bitcoin Core
21.99.0
P2P Digital Currency
|
Go to the documentation of this file.
5 #ifndef BITCOIN_CHAINPARAMSBASE_H
6 #define BITCOIN_CHAINPARAMSBASE_H
22 static const std::string
MAIN;
33 CBaseChainParams(
const std::string& data_dir, uint16_t rpc_port, uint16_t onion_service_target_port)
63 #endif // BITCOIN_CHAINPARAMSBASE_H
const uint16_t m_rpc_port
static const std::string TESTNET
CBaseChainParams(const std::string &data_dir, uint16_t rpc_port, uint16_t onion_service_target_port)
CBaseChainParams defines the base parameters (shared between bitcoin-cli and bitcoind) of a given ins...
const std::string & DataDir() const
void SetupChainParamsBaseOptions(ArgsManager &argsman)
Set the arguments for chainparams.
uint16_t OnionServiceTargetPort() const
static const std::string REGTEST
void SelectBaseParams(const std::string &chain)
Sets the params returned by Params() to those for the given network.
static const std::string MAIN
Chain name strings.
const uint16_t m_onion_service_target_port
const CBaseChainParams & BaseParams()
Return the currently selected parameters.
CBaseChainParams()=delete
std::unique_ptr< CBaseChainParams > CreateBaseChainParams(const std::string &chain)
Creates and returns a std::unique_ptr<CBaseChainParams> of the chosen chain.
static const std::string SIGNET