Dash Core  0.12.2.1
P2P Digital Currency
CChainParams Class Reference

#include <chainparams.h>

+ Inheritance diagram for CChainParams:

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
 
const std::vector< unsigned char > & AlertKey () const
 
int GetDefaultPort () const
 
const CBlockGenesisBlock () const
 
bool MiningRequiresPeers () const
 
bool DefaultConsistencyChecks () const
 
bool RequireStandard () const
 
int64_t MaxTipAge () const
 
int64_t DelayGetHeadersTime () const
 
uint64_t PruneAfterHeight () const
 
bool MineBlocksOnDemand () const
 
bool TestnetToBeDeprecatedFieldRPC () const
 
std::string NetworkIDString () const
 
const std::vector< CDNSSeedData > & DNSSeeds () const
 
const std::vector< unsigned char > & Base58Prefix (Base58Type type) const
 
int ExtCoinType () const
 
const std::vector< SeedSpec6 > & FixedSeeds () const
 
const CCheckpointDataCheckpoints () const
 
int PoolMaxTransactions () const
 
int FulfilledRequestExpireTime () const
 
std::string SporkPubKey () const
 

Protected Member Functions

 CChainParams ()
 

Protected Attributes

Consensus::Params consensus
 
CMessageHeader::MessageStartChars pchMessageStart
 
std::vector< unsigned char > vAlertPubKey
 Raw pub key bytes for the broadcast alert signing key. More...
 
int nDefaultPort
 
long nMaxTipAge
 
int64_t nDelayGetHeadersTime
 
uint64_t nPruneAfterHeight
 
std::vector< CDNSSeedDatavSeeds
 
std::vector< unsigned char > base58Prefixes [MAX_BASE58_TYPES]
 
int nExtCoinType
 
std::string strNetworkID
 
CBlock genesis
 
std::vector< SeedSpec6vFixedSeeds
 
bool fMiningRequiresPeers
 
bool fDefaultConsistencyChecks
 
bool fRequireStandard
 
bool fMineBlocksOnDemand
 
bool fTestnetToBeDeprecatedFieldRPC
 
CCheckpointData checkpointData
 
int nPoolMaxTransactions
 
int nFulfilledRequestExpireTime
 
std::string strSporkPubKey
 
std::string strMasternodePaymentsPubKey
 

Detailed Description

CChainParams defines various tweakable parameters of a given instance of the Dash 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 
MAX_BASE58_TYPES 

Definition at line 45 of file chainparams.h.

Constructor & Destructor Documentation

◆ CChainParams()

CChainParams::CChainParams ( )
inlineprotected

Definition at line 85 of file chainparams.h.

Member Function Documentation

◆ AlertKey()

const std::vector<unsigned char>& CChainParams::AlertKey ( ) const
inline

Definition at line 57 of file chainparams.h.

Referenced by ProcessMessage().

◆ Base58Prefix()

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

◆ Checkpoints()

const CCheckpointData& CChainParams::Checkpoints ( ) const
inline

◆ DefaultConsistencyChecks()

bool CChainParams::DefaultConsistencyChecks ( ) const
inline

Default value for -checkmempool and -checkblockindex argument

Definition at line 64 of file chainparams.h.

Referenced by AppInit2().

◆ DelayGetHeadersTime()

int64_t CChainParams::DelayGetHeadersTime ( ) const
inline

Definition at line 68 of file chainparams.h.

Referenced by ProcessMessage(), and SendMessages().

◆ DNSSeeds()

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

Definition at line 76 of file chainparams.h.

Referenced by CConnman::ThreadDNSAddressSeed().

◆ ExtCoinType()

int CChainParams::ExtCoinType ( ) const
inline

Definition at line 78 of file chainparams.h.

◆ FixedSeeds()

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

Definition at line 79 of file chainparams.h.

◆ FulfilledRequestExpireTime()

int CChainParams::FulfilledRequestExpireTime ( ) const
inline

Definition at line 82 of file chainparams.h.

Referenced by CNetFulfilledRequestManager::AddFulfilledRequest().

◆ GenesisBlock()

const CBlock& CChainParams::GenesisBlock ( ) const
inline

Definition at line 60 of file chainparams.h.

Referenced by InitBlockIndex().

◆ GetConsensus()

◆ GetDefaultPort()

◆ MaxTipAge()

int64_t CChainParams::MaxTipAge ( ) const
inline

Definition at line 67 of file chainparams.h.

Referenced by IsInitialBlockDownload().

◆ MessageStart()

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

◆ 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.

Referenced by BitcoinMiner(), CreateNewBlock(), generate(), setgenerate(), and setmocktime().

◆ MiningRequiresPeers()

bool CChainParams::MiningRequiresPeers ( ) const
inline

Make miner wait to have peers to avoid wasting work

Definition at line 62 of file chainparams.h.

Referenced by BitcoinMiner().

◆ NetworkIDString()

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

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

Definition at line 75 of file chainparams.h.

Referenced by AppInit2(), CMasternode::IsValidNetAddr(), CMasternodeMan::ProcessMessage(), and PaymentServer::verifyNetwork().

◆ PoolMaxTransactions()

int CChainParams::PoolMaxTransactions ( ) const
inline

◆ PruneAfterHeight()

uint64_t CChainParams::PruneAfterHeight ( ) const
inline

Definition at line 69 of file chainparams.h.

Referenced by FlushStateToDisk().

◆ RequireStandard()

bool CChainParams::RequireStandard ( ) const
inline

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

Definition at line 66 of file chainparams.h.

◆ SporkPubKey()

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

Definition at line 83 of file chainparams.h.

◆ TestnetToBeDeprecatedFieldRPC()

bool CChainParams::TestnetToBeDeprecatedFieldRPC ( ) const
inline

In the future use NetworkIDString() for RPC fields

Definition at line 73 of file chainparams.h.

Member Data Documentation

◆ base58Prefixes

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

◆ checkpointData

CCheckpointData CChainParams::checkpointData
protected

◆ consensus

Consensus::Params CChainParams::consensus
protected

◆ fDefaultConsistencyChecks

bool CChainParams::fDefaultConsistencyChecks
protected

◆ fMineBlocksOnDemand

bool CChainParams::fMineBlocksOnDemand
protected

◆ fMiningRequiresPeers

bool CChainParams::fMiningRequiresPeers
protected

◆ fRequireStandard

bool CChainParams::fRequireStandard
protected

◆ fTestnetToBeDeprecatedFieldRPC

bool CChainParams::fTestnetToBeDeprecatedFieldRPC
protected

◆ genesis

CBlock CChainParams::genesis
protected

◆ nDefaultPort

int CChainParams::nDefaultPort
protected

◆ nDelayGetHeadersTime

int64_t CChainParams::nDelayGetHeadersTime
protected

◆ nExtCoinType

int CChainParams::nExtCoinType
protected

◆ nFulfilledRequestExpireTime

int CChainParams::nFulfilledRequestExpireTime
protected

◆ nMaxTipAge

long CChainParams::nMaxTipAge
protected

◆ nPoolMaxTransactions

int CChainParams::nPoolMaxTransactions
protected

◆ nPruneAfterHeight

uint64_t CChainParams::nPruneAfterHeight
protected

◆ pchMessageStart

◆ strMasternodePaymentsPubKey

std::string CChainParams::strMasternodePaymentsPubKey
protected

Definition at line 110 of file chainparams.h.

◆ strNetworkID

std::string CChainParams::strNetworkID
protected

◆ strSporkPubKey

std::string CChainParams::strSporkPubKey
protected

◆ vAlertPubKey

std::vector<unsigned char> CChainParams::vAlertPubKey
protected

Raw pub key bytes for the broadcast alert signing key.

Definition at line 90 of file chainparams.h.

Referenced by AlertKey(), CMainParams::CMainParams(), and CTestNetParams::CTestNetParams().

◆ vFixedSeeds

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

◆ vSeeds

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

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