5#ifndef BITCOIN_CHAINPARAMSBASE_H
6#define BITCOIN_CHAINPARAMSBASE_H
21 static const std::string
MAIN;
35 uint16_t onion_service_target_port, uint16_t chronik_port,
36 uint16_t chronik_electrum_port)
56std::unique_ptr<CBaseChainParams>
std::unique_ptr< CBaseChainParams > CreateBaseChainParams(const std::string &chain)
Creates and returns a std::unique_ptr<CBaseChainParams> of the chosen chain.
const CBaseChainParams & BaseParams()
Return the currently selected parameters.
void SetupChainParamsBaseOptions(ArgsManager &argsman)
Set the arguments for chainparams.
void SelectBaseParams(const std::string &chain)
Sets the params returned by Params() to those for the given network.
CBaseChainParams defines the base parameters (shared between bitcoin-cli and bitcoind) of a given ins...
CBaseChainParams()=delete
const uint16_t m_chronik_electrum_port
const uint16_t m_onion_service_target_port
static const std::string REGTEST
const uint16_t m_rpc_port
uint16_t OnionServiceTargetPort() const
const std::string & DataDir() const
uint16_t ChronikElectrumPort() const
static const std::string TESTNET
uint16_t ChronikPort() const
const uint16_t m_chronik_port
CBaseChainParams(const std::string &data_dir, uint16_t rpc_port, uint16_t onion_service_target_port, uint16_t chronik_port, uint16_t chronik_electrum_port)
static const std::string MAIN
BIP70 chain name strings (main, test or regtest)