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...
 
const std::vector< CDNSSeedData > & DNSSeeds () const
 
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
 
void UpdateVersionBitsParameters (Consensus::DeploymentPos d, int64_t nStartTime, int64_t nTimeout)
 

Protected Member Functions

 CChainParams ()
 

Protected Attributes

Consensus::Params consensus
 
CMessageHeader::MessageStartChars pchMessageStart
 
int nDefaultPort
 
uint64_t nPruneAfterHeight
 
std::vector< CDNSSeedDatavSeeds
 
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
 

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

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 ( )
inlineprotected

Definition at line 82 of file chainparams.h.

Member Function Documentation

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

Definition at line 75 of file chainparams.h.

Here is the caller graph for this function:

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

Definition at line 76 of file chainparams.h.

Here is the caller graph for this function:

const CCheckpointData& CChainParams::Checkpoints ( ) const
inline

Definition at line 78 of file chainparams.h.

Here is the caller graph for this function:

bool CChainParams::DefaultConsistencyChecks ( ) const
inline

Default value for -checkmempool and -checkblockindex argument.

Definition at line 66 of file chainparams.h.

Here is the caller graph for this function:

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

Definition at line 74 of file chainparams.h.

Here is the caller graph for this function:

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

Definition at line 77 of file chainparams.h.

const CBlock& CChainParams::GenesisBlock ( ) const
inline

Definition at line 64 of file chainparams.h.

Here is the caller graph for this function:

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

Definition at line 60 of file chainparams.h.

Here is the caller graph for this function:

int CChainParams::GetDefaultPort ( ) const
inline

Definition at line 62 of file chainparams.h.

Here is the caller graph for this function:

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

Definition at line 61 of file chainparams.h.

Here is the caller graph for this function:

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:

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

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

Definition at line 73 of file chainparams.h.

Here is the caller graph for this function:

uint64_t CChainParams::PruneAfterHeight ( ) const
inline

Definition at line 69 of file chainparams.h.

Here is the caller graph for this function:

bool CChainParams::RequireStandard ( ) const
inline

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

Definition at line 68 of file chainparams.h.

Here is the caller graph for this function:

const ChainTxData& CChainParams::TxData ( ) const
inline

Definition at line 79 of file chainparams.h.

Here is the call graph for this function:

Here is the caller graph for this function:

void CChainParams::UpdateVersionBitsParameters ( Consensus::DeploymentPos  d,
int64_t  nStartTime,
int64_t  nTimeout 
)

Definition at line 56 of file chainparams.cpp.

Member Data Documentation

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

Definition at line 89 of file chainparams.h.

std::string CChainParams::bech32_hrp
protected

Definition at line 90 of file chainparams.h.

ChainTxData CChainParams::chainTxData
protected

Definition at line 98 of file chainparams.h.

CCheckpointData CChainParams::checkpointData
protected

Definition at line 97 of file chainparams.h.

Consensus::Params CChainParams::consensus
protected

Definition at line 84 of file chainparams.h.

bool CChainParams::fDefaultConsistencyChecks
protected

Definition at line 94 of file chainparams.h.

bool CChainParams::fMineBlocksOnDemand
protected

Definition at line 96 of file chainparams.h.

bool CChainParams::fRequireStandard
protected

Definition at line 95 of file chainparams.h.

CBlock CChainParams::genesis
protected

Definition at line 92 of file chainparams.h.

int CChainParams::nDefaultPort
protected

Definition at line 86 of file chainparams.h.

uint64_t CChainParams::nPruneAfterHeight
protected

Definition at line 87 of file chainparams.h.

CMessageHeader::MessageStartChars CChainParams::pchMessageStart
protected

Definition at line 85 of file chainparams.h.

std::string CChainParams::strNetworkID
protected

Definition at line 91 of file chainparams.h.

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

Definition at line 93 of file chainparams.h.

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

Definition at line 88 of file chainparams.h.


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