Bitcoin Core  0.15.99
P2P Digital Currency
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CChainParams Class Reference

CChainParams defines various tweakable parameters of a given instance of the Bitcoin system. More...

#include <chainparams.h>

Inheritance diagram for CChainParams:
[legend]
Collaboration diagram for CChainParams:
[legend]

Public Types

enum  Base58Type {
  PUBKEY_ADDRESS, SCRIPT_ADDRESS, SECRET_KEY, EXT_PUBLIC_KEY,
  EXT_SECRET_KEY, MAX_BASE58_TYPES
}
 

Public Member Functions

const Consensus::ParamsGetConsensus () const
 
const CMessageHeader::MessageStartCharsMessageStart () const
 
int GetDefaultPort () const
 
const CBlockGenesisBlock () const
 
bool DefaultConsistencyChecks () const
 Default value for -checkmempool and -checkblockindex argument. More...
 
bool RequireStandard () const
 Policy: Filter transactions that do not match well-defined patterns. More...
 
uint64_t PruneAfterHeight () const
 
bool MineBlocksOnDemand () const
 Make miner stop after a block is found. More...
 
std::string NetworkIDString () const
 Return the BIP70 network string (main, test or regtest) More...
 
bool IsFallbackFeeEnabled () const
 Return true if the fallback fee is by default enabled for this network. More...
 
const std::vector< std::string > & DNSSeeds () const
 Return the list of hostnames to look up for DNS seeds. More...
 
const std::vector< unsigned char > & Base58Prefix (Base58Type type) const
 
const std::string & Bech32HRP () const
 
const std::vector< SeedSpec6 > & FixedSeeds () const
 
const CCheckpointDataCheckpoints () const
 
const ChainTxDataTxData () const
 

Protected Member Functions

 CChainParams ()
 

Protected Attributes

Consensus::Params consensus
 
CMessageHeader::MessageStartChars pchMessageStart
 
int nDefaultPort
 
uint64_t nPruneAfterHeight
 
std::vector< std::string > vSeeds
 
std::vector< unsigned char > base58Prefixes [MAX_BASE58_TYPES]
 
std::string bech32_hrp
 
std::string strNetworkID
 
CBlock genesis
 
std::vector< SeedSpec6vFixedSeeds
 
bool fDefaultConsistencyChecks
 
bool fRequireStandard
 
bool fMineBlocksOnDemand
 
CCheckpointData checkpointData
 
ChainTxData chainTxData
 
bool m_fallback_fee_enabled
 

Detailed Description

CChainParams defines various tweakable parameters of a given instance of the Bitcoin system.

There are three: the main network on which people trade goods and services, the public test network which gets reset from time to time and a regression test mode which is intended for private networks only. It has minimal difficulty to ensure that blocks can be found instantly.

Definition at line 47 of file chainparams.h.

Member Enumeration Documentation

◆ Base58Type

Enumerator
PUBKEY_ADDRESS 
SCRIPT_ADDRESS 
SECRET_KEY 
EXT_PUBLIC_KEY 
EXT_SECRET_KEY 
MAX_BASE58_TYPES 

Definition at line 50 of file chainparams.h.

Constructor & Destructor Documentation

◆ CChainParams()

CChainParams::CChainParams ( )
inlineprotected

Definition at line 84 of file chainparams.h.

Member Function Documentation

◆ Base58Prefix()

const std::vector<unsigned char>& CChainParams::Base58Prefix ( Base58Type  type) const
inline

Definition at line 78 of file chainparams.h.

Here is the caller graph for this function:

◆ Bech32HRP()

const std::string& CChainParams::Bech32HRP ( ) const
inline

Definition at line 79 of file chainparams.h.

◆ Checkpoints()

const CCheckpointData& CChainParams::Checkpoints ( ) const
inline

Definition at line 81 of file chainparams.h.

◆ DefaultConsistencyChecks()

bool CChainParams::DefaultConsistencyChecks ( ) const
inline

Default value for -checkmempool and -checkblockindex argument.

Definition at line 66 of file chainparams.h.

◆ DNSSeeds()

const std::vector<std::string>& CChainParams::DNSSeeds ( ) const
inline

Return the list of hostnames to look up for DNS seeds.

Definition at line 77 of file chainparams.h.

◆ FixedSeeds()

const std::vector<SeedSpec6>& CChainParams::FixedSeeds ( ) const
inline

Definition at line 80 of file chainparams.h.

◆ GenesisBlock()

const CBlock& CChainParams::GenesisBlock ( ) const
inline

Definition at line 64 of file chainparams.h.

Here is the caller graph for this function:

◆ GetConsensus()

const Consensus::Params& CChainParams::GetConsensus ( ) const
inline

Definition at line 60 of file chainparams.h.

Here is the caller graph for this function:

◆ GetDefaultPort()

int CChainParams::GetDefaultPort ( ) const
inline

Definition at line 62 of file chainparams.h.

Here is the caller graph for this function:

◆ IsFallbackFeeEnabled()

bool CChainParams::IsFallbackFeeEnabled ( ) const
inline

Return true if the fallback fee is by default enabled for this network.

Definition at line 75 of file chainparams.h.

◆ MessageStart()

const CMessageHeader::MessageStartChars& CChainParams::MessageStart ( ) const
inline

Definition at line 61 of file chainparams.h.

◆ MineBlocksOnDemand()

bool CChainParams::MineBlocksOnDemand ( ) const
inline

Make miner stop after a block is found.

In RPC, don't return until nGenProcLimit blocks are generated

Definition at line 71 of file chainparams.h.

Here is the caller graph for this function:

◆ NetworkIDString()

std::string CChainParams::NetworkIDString ( ) const
inline

Return the BIP70 network string (main, test or regtest)

Definition at line 73 of file chainparams.h.

◆ PruneAfterHeight()

uint64_t CChainParams::PruneAfterHeight ( ) const
inline

Definition at line 69 of file chainparams.h.

◆ RequireStandard()

bool CChainParams::RequireStandard ( ) const
inline

Policy: Filter transactions that do not match well-defined patterns.

Definition at line 68 of file chainparams.h.

◆ TxData()

const ChainTxData& CChainParams::TxData ( ) const
inline

Definition at line 82 of file chainparams.h.

Member Data Documentation

◆ base58Prefixes

std::vector<unsigned char> CChainParams::base58Prefixes[MAX_BASE58_TYPES]
protected

Definition at line 91 of file chainparams.h.

◆ bech32_hrp

std::string CChainParams::bech32_hrp
protected

Definition at line 92 of file chainparams.h.

◆ chainTxData

ChainTxData CChainParams::chainTxData
protected

Definition at line 100 of file chainparams.h.

◆ checkpointData

CCheckpointData CChainParams::checkpointData
protected

Definition at line 99 of file chainparams.h.

◆ consensus

Consensus::Params CChainParams::consensus
protected

Definition at line 86 of file chainparams.h.

◆ fDefaultConsistencyChecks

bool CChainParams::fDefaultConsistencyChecks
protected

Definition at line 96 of file chainparams.h.

◆ fMineBlocksOnDemand

bool CChainParams::fMineBlocksOnDemand
protected

Definition at line 98 of file chainparams.h.

◆ fRequireStandard

bool CChainParams::fRequireStandard
protected

Definition at line 97 of file chainparams.h.

◆ genesis

CBlock CChainParams::genesis
protected

Definition at line 94 of file chainparams.h.

◆ m_fallback_fee_enabled

bool CChainParams::m_fallback_fee_enabled
protected

Definition at line 101 of file chainparams.h.

◆ nDefaultPort

int CChainParams::nDefaultPort
protected

Definition at line 88 of file chainparams.h.

◆ nPruneAfterHeight

uint64_t CChainParams::nPruneAfterHeight
protected

Definition at line 89 of file chainparams.h.

◆ pchMessageStart

CMessageHeader::MessageStartChars CChainParams::pchMessageStart
protected

Definition at line 87 of file chainparams.h.

◆ strNetworkID

std::string CChainParams::strNetworkID
protected

Definition at line 93 of file chainparams.h.

◆ vFixedSeeds

std::vector<SeedSpec6> CChainParams::vFixedSeeds
protected

Definition at line 95 of file chainparams.h.

◆ vSeeds

std::vector<std::string> CChainParams::vSeeds
protected

Definition at line 90 of file chainparams.h.


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