BSHA3  0.17.99
P2P Blockchain, based on Bitcoin
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
 
bool MiningRequiresPeers () 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
 
void UpdateVersionBitsParameters (Consensus::DeploymentPos d, int64_t nStartTime, int64_t nTimeout)
 
void TurnOffSegwit ()
 
void TurnOffCSV ()
 
void TurnOffBIP34 ()
 
void TurnOffBIP65 ()
 
void TurnOffBIP66 ()
 
bool BIP34 ()
 
bool BIP65 ()
 
bool BIP66 ()
 
bool CSVEnabled () 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
 
bool fMiningRequiresPeers
 
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 96 of file chainparams.h.

Member Function Documentation

◆ Base58Prefix()

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

Definition at line 79 of file chainparams.h.

Here is the caller graph for this function:

◆ Bech32HRP()

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

Definition at line 80 of file chainparams.h.

◆ BIP34()

bool CChainParams::BIP34 ( )

Definition at line 406 of file chainparams.cpp.

◆ BIP65()

bool CChainParams::BIP65 ( )

Definition at line 410 of file chainparams.cpp.

◆ BIP66()

bool CChainParams::BIP66 ( )

Definition at line 414 of file chainparams.cpp.

◆ Checkpoints()

const CCheckpointData& CChainParams::Checkpoints ( ) const
inline

Definition at line 82 of file chainparams.h.

◆ CSVEnabled()

bool CChainParams::CSVEnabled ( ) const

Definition at line 418 of file chainparams.cpp.

◆ DefaultConsistencyChecks()

bool CChainParams::DefaultConsistencyChecks ( ) const
inline

Default value for -checkmempool and -checkblockindex argument.

Definition at line 67 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 78 of file chainparams.h.

◆ FixedSeeds()

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

Definition at line 81 of file chainparams.h.

◆ GenesisBlock()

const CBlock& CChainParams::GenesisBlock ( ) const
inline

Definition at line 65 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 76 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 72 of file chainparams.h.

Here is the caller graph for this function:

◆ MiningRequiresPeers()

bool CChainParams::MiningRequiresPeers ( ) const
inline

Definition at line 64 of file chainparams.h.

◆ NetworkIDString()

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

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

Definition at line 74 of file chainparams.h.

◆ PruneAfterHeight()

uint64_t CChainParams::PruneAfterHeight ( ) const
inline

Definition at line 70 of file chainparams.h.

◆ RequireStandard()

bool CChainParams::RequireStandard ( ) const
inline

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

Definition at line 69 of file chainparams.h.

◆ TurnOffBIP34()

void CChainParams::TurnOffBIP34 ( )

Definition at line 394 of file chainparams.cpp.

◆ TurnOffBIP65()

void CChainParams::TurnOffBIP65 ( )

Definition at line 398 of file chainparams.cpp.

◆ TurnOffBIP66()

void CChainParams::TurnOffBIP66 ( )

Definition at line 402 of file chainparams.cpp.

◆ TurnOffCSV()

void CChainParams::TurnOffCSV ( )

Definition at line 390 of file chainparams.cpp.

◆ TurnOffSegwit()

void CChainParams::TurnOffSegwit ( )

Definition at line 386 of file chainparams.cpp.

◆ TxData()

const ChainTxData& CChainParams::TxData ( ) const
inline

Definition at line 83 of file chainparams.h.

Here is the caller graph for this function:

◆ UpdateVersionBitsParameters()

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

Member Data Documentation

◆ base58Prefixes

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

Definition at line 103 of file chainparams.h.

◆ bech32_hrp

std::string CChainParams::bech32_hrp
protected

Definition at line 104 of file chainparams.h.

◆ chainTxData

ChainTxData CChainParams::chainTxData
protected

Definition at line 113 of file chainparams.h.

◆ checkpointData

CCheckpointData CChainParams::checkpointData
protected

Definition at line 112 of file chainparams.h.

◆ consensus

Consensus::Params CChainParams::consensus
protected

Definition at line 98 of file chainparams.h.

◆ fDefaultConsistencyChecks

bool CChainParams::fDefaultConsistencyChecks
protected

Definition at line 108 of file chainparams.h.

◆ fMineBlocksOnDemand

bool CChainParams::fMineBlocksOnDemand
protected

Definition at line 110 of file chainparams.h.

◆ fMiningRequiresPeers

bool CChainParams::fMiningRequiresPeers
protected

Definition at line 111 of file chainparams.h.

◆ fRequireStandard

bool CChainParams::fRequireStandard
protected

Definition at line 109 of file chainparams.h.

◆ genesis

CBlock CChainParams::genesis
protected

Definition at line 106 of file chainparams.h.

◆ m_fallback_fee_enabled

bool CChainParams::m_fallback_fee_enabled
protected

Definition at line 114 of file chainparams.h.

◆ nDefaultPort

int CChainParams::nDefaultPort
protected

Definition at line 100 of file chainparams.h.

◆ nPruneAfterHeight

uint64_t CChainParams::nPruneAfterHeight
protected

Definition at line 101 of file chainparams.h.

◆ pchMessageStart

CMessageHeader::MessageStartChars CChainParams::pchMessageStart
protected

Definition at line 99 of file chainparams.h.

◆ strNetworkID

std::string CChainParams::strNetworkID
protected

Definition at line 105 of file chainparams.h.

◆ vFixedSeeds

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

Definition at line 107 of file chainparams.h.

◆ vSeeds

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

Definition at line 102 of file chainparams.h.


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