Bitcoin Core  0.20.99
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
CBaseChainParams Class Reference

CBaseChainParams defines the base parameters (shared between bitcoin-cli and bitcoind) of a given instance of the Bitcoin system. More...

#include <chainparamsbase.h>

Public Member Functions

const std::string & DataDir () const
 
uint16_t RPCPort () const
 
uint16_t OnionServiceTargetPort () const
 
 CBaseChainParams ()=delete
 
 CBaseChainParams (const std::string &data_dir, uint16_t rpc_port, uint16_t onion_service_target_port)
 

Static Public Attributes

static const std::string MAIN = "main"
 Chain name strings. More...
 
static const std::string TESTNET = "test"
 
static const std::string SIGNET = "signet"
 
static const std::string REGTEST = "regtest"
 

Private Attributes

const uint16_t m_rpc_port
 
const uint16_t m_onion_service_target_port
 
std::string strDataDir
 

Detailed Description

CBaseChainParams defines the base parameters (shared between bitcoin-cli and bitcoind) of a given instance of the Bitcoin system.

Definition at line 17 of file chainparamsbase.h.

Constructor & Destructor Documentation

◆ CBaseChainParams() [1/2]

CBaseChainParams::CBaseChainParams ( )
delete
Here is the caller graph for this function:

◆ CBaseChainParams() [2/2]

CBaseChainParams::CBaseChainParams ( const std::string &  data_dir,
uint16_t  rpc_port,
uint16_t  onion_service_target_port 
)
inline

Definition at line 33 of file chainparamsbase.h.

Member Function Documentation

◆ DataDir()

const std::string& CBaseChainParams::DataDir ( ) const
inline

Definition at line 28 of file chainparamsbase.h.

Here is the caller graph for this function:

◆ OnionServiceTargetPort()

uint16_t CBaseChainParams::OnionServiceTargetPort ( ) const
inline

Definition at line 30 of file chainparamsbase.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RPCPort()

uint16_t CBaseChainParams::RPCPort ( ) const
inline

Definition at line 29 of file chainparamsbase.h.

Here is the caller graph for this function:

Member Data Documentation

◆ m_onion_service_target_port

const uint16_t CBaseChainParams::m_onion_service_target_port
private

Definition at line 38 of file chainparamsbase.h.

◆ m_rpc_port

const uint16_t CBaseChainParams::m_rpc_port
private

Definition at line 37 of file chainparamsbase.h.

◆ MAIN

const std::string CBaseChainParams::MAIN = "main"
static

Chain name strings.

Definition at line 22 of file chainparamsbase.h.

◆ REGTEST

const std::string CBaseChainParams::REGTEST = "regtest"
static

Definition at line 25 of file chainparamsbase.h.

◆ SIGNET

const std::string CBaseChainParams::SIGNET = "signet"
static

Definition at line 24 of file chainparamsbase.h.

◆ strDataDir

std::string CBaseChainParams::strDataDir
private

Definition at line 39 of file chainparamsbase.h.

◆ TESTNET

const std::string CBaseChainParams::TESTNET = "test"
static

Definition at line 23 of file chainparamsbase.h.


The documentation for this class was generated from the following files: