PIVX Core  5.6.99
P2P Digital Currency
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CChainParams Class Referenceabstract

CChainParams defines various tweakable parameters of a given instance of the PIVX 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 , EXT_COIN_TYPE , STAKING_ADDRESS , EXCHANGE_ADDRESS ,
  MAX_BASE58_TYPES
}
 
enum  Bech32Type {
  SAPLING_PAYMENT_ADDRESS , SAPLING_FULL_VIEWING_KEY , SAPLING_INCOMING_VIEWING_KEY , SAPLING_EXTENDED_SPEND_KEY ,
  SAPLING_EXTENDED_FVK , BLS_SECRET_KEY , BLS_PUBLIC_KEY , MAX_BECH32_TYPES
}
 

Public Member Functions

virtual ~CChainParams ()
 
const Consensus::ParamsGetConsensus () const
 
const CMessageHeader::MessageStartCharsMessageStart () const
 
int GetDefaultPort () const
 
const CBlockGenesisBlock () const
 
bool RequireStandard () const
 Policy: Filter transactions that do not match well-defined patterns. More...
 
int LLMQConnectionRetryTimeout () const
 How long to wait until we allow retrying of a LLMQ connection
More...
 
bool IsTestChain () const
 If this chain is exclusively used for testing. More...
 
bool MiningRequiresPeers () const
 Make miner wait to have peers to avoid wasting work. More...
 
bool HeadersFirstSyncingActive () const
 Headers first syncing is disabled. More...
 
bool DefaultConsistencyChecks () const
 Default value for -checkmempool and -checkblockindex argument. More...
 
std::string NetworkIDString () const
 Return the network string. More...
 
const std::vector< CDNSSeedData > & DNSSeeds () const
 
const std::vector< unsigned char > & Base58Prefix (Base58Type type) const
 
const std::string & Bech32HRP (Bech32Type type) const
 
const std::vector< uint8_t > & FixedSeeds () const
 
virtual const CCheckpointDataCheckpoints () const =0
 
bool IsRegTestNet () const
 
bool IsTestnet () const
 
int FulfilledRequestExpireTime () const
 Tier two requests blockage mark expiration time. More...
 
void UpdateNetworkUpgradeParameters (Consensus::UpgradeIndex idx, int nActivationHeight)
 

Protected Member Functions

 CChainParams ()
 

Protected Attributes

std::string strNetworkID
 
CBlock genesis
 
Consensus::Params consensus
 
CMessageHeader::MessageStartChars pchMessageStart
 
int nDefaultPort
 
std::vector< CDNSSeedDatavSeeds
 
std::vector< unsigned char > base58Prefixes [MAX_BASE58_TYPES]
 
std::string bech32HRPs [MAX_BECH32_TYPES]
 
std::vector< uint8_t > vFixedSeeds
 
bool fRequireStandard
 
int nLLMQConnectionRetryTimeout
 
int nFulfilledRequestExpireTime
 

Detailed Description

CChainParams defines various tweakable parameters of a given instance of the PIVX 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 42 of file chainparams.h.

Member Enumeration Documentation

◆ Base58Type

Enumerator
PUBKEY_ADDRESS 
SCRIPT_ADDRESS 
SECRET_KEY 
EXT_PUBLIC_KEY 
EXT_SECRET_KEY 
EXT_COIN_TYPE 
STAKING_ADDRESS 
EXCHANGE_ADDRESS 
MAX_BASE58_TYPES 

Definition at line 46 of file chainparams.h.

◆ Bech32Type

Enumerator
SAPLING_PAYMENT_ADDRESS 
SAPLING_FULL_VIEWING_KEY 
SAPLING_INCOMING_VIEWING_KEY 
SAPLING_EXTENDED_SPEND_KEY 
SAPLING_EXTENDED_FVK 
BLS_SECRET_KEY 
BLS_PUBLIC_KEY 
MAX_BECH32_TYPES 

Definition at line 59 of file chainparams.h.

Constructor & Destructor Documentation

◆ ~CChainParams()

virtual CChainParams::~CChainParams ( )
inlinevirtual

Definition at line 45 of file chainparams.h.

◆ CChainParams()

CChainParams::CChainParams ( )
inlineprotected

Definition at line 106 of file chainparams.h.

Member Function Documentation

◆ Base58Prefix()

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

Definition at line 93 of file chainparams.h.

◆ Bech32HRP()

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

Definition at line 94 of file chainparams.h.

◆ Checkpoints()

virtual const CCheckpointData& CChainParams::Checkpoints ( ) const
pure virtual

Implemented in CRegTestParams, CTestNetParams, and CMainParams.

Here is the caller graph for this function:

◆ DefaultConsistencyChecks()

bool CChainParams::DefaultConsistencyChecks ( ) const
inline

Default value for -checkmempool and -checkblockindex argument.

Definition at line 88 of file chainparams.h.

Here is the call graph for this function:

◆ DNSSeeds()

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

Definition at line 92 of file chainparams.h.

◆ FixedSeeds()

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

Definition at line 95 of file chainparams.h.

◆ FulfilledRequestExpireTime()

int CChainParams::FulfilledRequestExpireTime ( ) const
inline

Tier two requests blockage mark expiration time.

Definition at line 102 of file chainparams.h.

Here is the caller graph for this function:

◆ GenesisBlock()

const CBlock& CChainParams::GenesisBlock ( ) const
inline

Definition at line 76 of file chainparams.h.

Here is the caller graph for this function:

◆ GetConsensus()

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

Definition at line 72 of file chainparams.h.

◆ GetDefaultPort()

int CChainParams::GetDefaultPort ( ) const
inline

Definition at line 74 of file chainparams.h.

Here is the caller graph for this function:

◆ HeadersFirstSyncingActive()

bool CChainParams::HeadersFirstSyncingActive ( ) const
inline

Headers first syncing is disabled.

Definition at line 86 of file chainparams.h.

◆ IsRegTestNet()

bool CChainParams::IsRegTestNet ( ) const
inline

Definition at line 98 of file chainparams.h.

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

◆ IsTestChain()

bool CChainParams::IsTestChain ( ) const
inline

If this chain is exclusively used for testing.

Definition at line 82 of file chainparams.h.

Here is the call graph for this function:

◆ IsTestnet()

bool CChainParams::IsTestnet ( ) const
inline

Definition at line 99 of file chainparams.h.

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

◆ LLMQConnectionRetryTimeout()

int CChainParams::LLMQConnectionRetryTimeout ( ) const
inline

How long to wait until we allow retrying of a LLMQ connection

Definition at line 80 of file chainparams.h.

◆ MessageStart()

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

Definition at line 73 of file chainparams.h.

◆ MiningRequiresPeers()

bool CChainParams::MiningRequiresPeers ( ) const
inline

Make miner wait to have peers to avoid wasting work.

Definition at line 84 of file chainparams.h.

Here is the call graph for this function:

◆ NetworkIDString()

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

Return the network string.

Definition at line 91 of file chainparams.h.

Here is the caller graph for this function:

◆ RequireStandard()

bool CChainParams::RequireStandard ( ) const
inline

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

Definition at line 78 of file chainparams.h.

◆ UpdateNetworkUpgradeParameters()

void CChainParams::UpdateNetworkUpgradeParameters ( Consensus::UpgradeIndex  idx,
int  nActivationHeight 
)

Definition at line 38 of file chainparams.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ base58Prefixes

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

Definition at line 114 of file chainparams.h.

◆ bech32HRPs

std::string CChainParams::bech32HRPs[MAX_BECH32_TYPES]
protected

Definition at line 115 of file chainparams.h.

◆ consensus

Consensus::Params CChainParams::consensus
protected

Definition at line 110 of file chainparams.h.

◆ fRequireStandard

bool CChainParams::fRequireStandard
protected

Definition at line 117 of file chainparams.h.

◆ genesis

CBlock CChainParams::genesis
protected

Definition at line 109 of file chainparams.h.

◆ nDefaultPort

int CChainParams::nDefaultPort
protected

Definition at line 112 of file chainparams.h.

◆ nFulfilledRequestExpireTime

int CChainParams::nFulfilledRequestExpireTime
protected

Definition at line 121 of file chainparams.h.

◆ nLLMQConnectionRetryTimeout

int CChainParams::nLLMQConnectionRetryTimeout
protected

Definition at line 120 of file chainparams.h.

◆ pchMessageStart

CMessageHeader::MessageStartChars CChainParams::pchMessageStart
protected

Definition at line 111 of file chainparams.h.

◆ strNetworkID

std::string CChainParams::strNetworkID
protected

Definition at line 108 of file chainparams.h.

◆ vFixedSeeds

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

Definition at line 116 of file chainparams.h.

◆ vSeeds

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

Definition at line 113 of file chainparams.h.


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