Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | 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
 
uint16_t ChronikPort () const
 
 CBaseChainParams ()=delete
 
 CBaseChainParams (const std::string &data_dir, uint16_t rpc_port, uint16_t onion_service_target_port, uint16_t chronik_port)
 

Static Public Attributes

static const std::string MAIN = "main"
 BIP70 chain name strings (main, test or regtest)
 
static const std::string TESTNET = "test"
 
static const std::string REGTEST = "regtest"
 

Private Attributes

const uint16_t m_rpc_port
 
const uint16_t m_onion_service_target_port
 
const uint16_t m_chronik_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 18 of file chainparamsbase.h.

Constructor & Destructor Documentation

◆ CBaseChainParams() [1/2]

CBaseChainParams::CBaseChainParams ( )
delete

◆ CBaseChainParams() [2/2]

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

Definition at line 33 of file chainparamsbase.h.

Member Function Documentation

◆ ChronikPort()

uint16_t CBaseChainParams::ChronikPort ( ) const
inline

Definition at line 30 of file chainparamsbase.h.

◆ DataDir()

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

Definition at line 25 of file chainparamsbase.h.

◆ OnionServiceTargetPort()

uint16_t CBaseChainParams::OnionServiceTargetPort ( ) const
inline

Definition at line 27 of file chainparamsbase.h.

Here is the caller graph for this function:

◆ RPCPort()

uint16_t CBaseChainParams::RPCPort ( ) const
inline

Definition at line 26 of file chainparamsbase.h.

Member Data Documentation

◆ m_chronik_port

const uint16_t CBaseChainParams::m_chronik_port
private

Definition at line 42 of file chainparamsbase.h.

◆ m_onion_service_target_port

const uint16_t CBaseChainParams::m_onion_service_target_port
private

Definition at line 41 of file chainparamsbase.h.

◆ m_rpc_port

const uint16_t CBaseChainParams::m_rpc_port
private

Definition at line 40 of file chainparamsbase.h.

◆ MAIN

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

BIP70 chain name strings (main, test or regtest)

Definition at line 21 of file chainparamsbase.h.

◆ REGTEST

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

Definition at line 23 of file chainparamsbase.h.

◆ strDataDir

std::string CBaseChainParams::strDataDir
private

Definition at line 43 of file chainparamsbase.h.

◆ TESTNET

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

Definition at line 22 of file chainparamsbase.h.


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