Raven Core  3.0.0
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 Raven 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...
 
const std::vector< CDNSSeedData > & DNSSeeds () const
 
const std::vector< unsigned char > & Base58Prefix (Base58Type type) 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
 
const CAmountIssueAssetBurnAmount () const
 RVN Start. More...
 
const CAmountReissueAssetBurnAmount () const
 
const CAmountIssueSubAssetBurnAmount () const
 
const CAmountIssueUniqueAssetBurnAmount () const
 
const CAmountIssueMsgChannelAssetBurnAmount () const
 
const CAmountIssueQualifierAssetBurnAmount () const
 
const CAmountIssueSubQualifierAssetBurnAmount () const
 
const CAmountIssueRestrictedAssetBurnAmount () const
 
const CAmountAddNullQualifierTagBurnAmount () const
 
const std::string & IssueAssetBurnAddress () const
 
const std::string & ReissueAssetBurnAddress () const
 
const std::string & IssueSubAssetBurnAddress () const
 
const std::string & IssueUniqueAssetBurnAddress () const
 
const std::string & IssueMsgChannelAssetBurnAddress () const
 
const std::string & IssueQualifierAssetBurnAddress () const
 
const std::string & IssueSubQualifierAssetBurnAddress () const
 
const std::string & IssueRestrictedAssetBurnAddress () const
 
const std::string & AddNullQualifierTagBurnAddress () const
 
const std::string & GlobalBurnAddress () const
 
unsigned int DGWActivationBlock () const
 
unsigned int MessagingActivationBlock () const
 
unsigned int RestrictedActivationBlock () const
 
int MaxReorganizationDepth () const
 
int MinReorganizationPeers () const
 
int MinReorganizationAge () const
 
int GetAssetActivationHeight () const
 

Protected Member Functions

 CChainParams ()
 RVN End. More...
 

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 strNetworkID
 
CBlock genesis
 
std::vector< SeedSpec6vFixedSeeds
 
bool fDefaultConsistencyChecks
 
bool fRequireStandard
 
bool fMineBlocksOnDemand
 
bool fMiningRequiresPeers
 
CCheckpointData checkpointData
 
ChainTxData chainTxData
 
CAmount nIssueAssetBurnAmount
 RVN Start. More...
 
CAmount nReissueAssetBurnAmount
 
CAmount nIssueSubAssetBurnAmount
 
CAmount nIssueUniqueAssetBurnAmount
 
CAmount nIssueMsgChannelAssetBurnAmount
 
CAmount nIssueQualifierAssetBurnAmount
 
CAmount nIssueSubQualifierAssetBurnAmount
 
CAmount nIssueRestrictedAssetBurnAmount
 
CAmount nAddNullQualifierTagBurnAmount
 
std::string strIssueAssetBurnAddress
 
std::string strReissueAssetBurnAddress
 
std::string strIssueSubAssetBurnAddress
 
std::string strIssueUniqueAssetBurnAddress
 
std::string strIssueMsgChannelAssetBurnAddress
 
std::string strIssueQualifierAssetBurnAddress
 
std::string strIssueSubQualifierAssetBurnAddress
 
std::string strIssueRestrictedAssetBurnAddress
 
std::string strAddNullQualifierTagBurnAddress
 
std::string strGlobalBurnAddress
 
unsigned int nDGWActivationBlock
 
unsigned int nMessagingActivationBlock
 
unsigned int nRestrictedActivationBlock
 
int nMaxReorganizationDepth
 
int nMinReorganizationPeers
 
int nMinReorganizationAge
 
int nAssetActivationHeight
 

Detailed Description

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

Constructor & Destructor Documentation

◆ CChainParams()

CChainParams::CChainParams ( )
inlineprotected

RVN End.

Definition at line 126 of file chainparams.h.

Member Function Documentation

◆ AddNullQualifierTagBurnAddress()

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

Definition at line 111 of file chainparams.h.

Here is the caller graph for this function:

◆ AddNullQualifierTagBurnAmount()

const CAmount& CChainParams::AddNullQualifierTagBurnAmount ( ) const
inline

Definition at line 101 of file chainparams.h.

Here is the caller graph for this function:

◆ Base58Prefix()

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

Definition at line 77 of file chainparams.h.

Here is the caller graph for this function:

◆ BIP34()

bool CChainParams::BIP34 ( )

Definition at line 89 of file chainparams.cpp.

◆ BIP65()

bool CChainParams::BIP65 ( )

Definition at line 93 of file chainparams.cpp.

◆ BIP66()

bool CChainParams::BIP66 ( )

Definition at line 97 of file chainparams.cpp.

◆ Checkpoints()

const CCheckpointData& CChainParams::Checkpoints ( ) const
inline

Definition at line 79 of file chainparams.h.

◆ CSVEnabled()

bool CChainParams::CSVEnabled ( ) const

Definition at line 101 of file chainparams.cpp.

◆ DefaultConsistencyChecks()

bool CChainParams::DefaultConsistencyChecks ( ) const
inline

Default value for -checkmempool and -checkblockindex argument.

Definition at line 68 of file chainparams.h.

◆ DGWActivationBlock()

unsigned int CChainParams::DGWActivationBlock ( ) const
inline

Definition at line 114 of file chainparams.h.

Here is the caller graph for this function:

◆ DNSSeeds()

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

Definition at line 76 of file chainparams.h.

◆ FixedSeeds()

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

Definition at line 78 of file chainparams.h.

◆ GenesisBlock()

const CBlock& CChainParams::GenesisBlock ( ) const
inline

Definition at line 66 of file chainparams.h.

Here is the caller graph for this function:

◆ GetAssetActivationHeight()

int CChainParams::GetAssetActivationHeight ( ) const
inline

Definition at line 122 of file chainparams.h.

Here is the caller graph for this function:

◆ GetConsensus()

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

Definition at line 61 of file chainparams.h.

Here is the caller graph for this function:

◆ GetDefaultPort()

int CChainParams::GetDefaultPort ( ) const
inline

Definition at line 63 of file chainparams.h.

Here is the caller graph for this function:

◆ GlobalBurnAddress()

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

Definition at line 112 of file chainparams.h.

◆ IssueAssetBurnAddress()

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

Definition at line 103 of file chainparams.h.

Here is the caller graph for this function:

◆ IssueAssetBurnAmount()

const CAmount& CChainParams::IssueAssetBurnAmount ( ) const
inline

RVN Start.

Definition at line 93 of file chainparams.h.

Here is the caller graph for this function:

◆ IssueMsgChannelAssetBurnAddress()

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

Definition at line 107 of file chainparams.h.

Here is the caller graph for this function:

◆ IssueMsgChannelAssetBurnAmount()

const CAmount& CChainParams::IssueMsgChannelAssetBurnAmount ( ) const
inline

Definition at line 97 of file chainparams.h.

Here is the caller graph for this function:

◆ IssueQualifierAssetBurnAddress()

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

Definition at line 108 of file chainparams.h.

Here is the caller graph for this function:

◆ IssueQualifierAssetBurnAmount()

const CAmount& CChainParams::IssueQualifierAssetBurnAmount ( ) const
inline

Definition at line 98 of file chainparams.h.

Here is the caller graph for this function:

◆ IssueRestrictedAssetBurnAddress()

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

Definition at line 110 of file chainparams.h.

Here is the caller graph for this function:

◆ IssueRestrictedAssetBurnAmount()

const CAmount& CChainParams::IssueRestrictedAssetBurnAmount ( ) const
inline

Definition at line 100 of file chainparams.h.

Here is the caller graph for this function:

◆ IssueSubAssetBurnAddress()

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

Definition at line 105 of file chainparams.h.

Here is the caller graph for this function:

◆ IssueSubAssetBurnAmount()

const CAmount& CChainParams::IssueSubAssetBurnAmount ( ) const
inline

Definition at line 95 of file chainparams.h.

Here is the caller graph for this function:

◆ IssueSubQualifierAssetBurnAddress()

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

Definition at line 109 of file chainparams.h.

Here is the caller graph for this function:

◆ IssueSubQualifierAssetBurnAmount()

const CAmount& CChainParams::IssueSubQualifierAssetBurnAmount ( ) const
inline

Definition at line 99 of file chainparams.h.

Here is the caller graph for this function:

◆ IssueUniqueAssetBurnAddress()

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

Definition at line 106 of file chainparams.h.

Here is the caller graph for this function:

◆ IssueUniqueAssetBurnAmount()

const CAmount& CChainParams::IssueUniqueAssetBurnAmount ( ) const
inline

Definition at line 96 of file chainparams.h.

Here is the caller graph for this function:

◆ MaxReorganizationDepth()

int CChainParams::MaxReorganizationDepth ( ) const
inline

Definition at line 118 of file chainparams.h.

◆ MessageStart()

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

Definition at line 62 of file chainparams.h.

◆ MessagingActivationBlock()

unsigned int CChainParams::MessagingActivationBlock ( ) const
inline

Definition at line 115 of file chainparams.h.

Here is the caller graph for this function:

◆ 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 73 of file chainparams.h.

Here is the caller graph for this function:

◆ MiningRequiresPeers()

bool CChainParams::MiningRequiresPeers ( ) const
inline

Definition at line 65 of file chainparams.h.

◆ MinReorganizationAge()

int CChainParams::MinReorganizationAge ( ) const
inline

Definition at line 120 of file chainparams.h.

◆ MinReorganizationPeers()

int CChainParams::MinReorganizationPeers ( ) const
inline

Definition at line 119 of file chainparams.h.

◆ NetworkIDString()

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

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

Definition at line 75 of file chainparams.h.

Here is the caller graph for this function:

◆ PruneAfterHeight()

uint64_t CChainParams::PruneAfterHeight ( ) const
inline

Definition at line 71 of file chainparams.h.

◆ ReissueAssetBurnAddress()

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

Definition at line 104 of file chainparams.h.

Here is the caller graph for this function:

◆ ReissueAssetBurnAmount()

const CAmount& CChainParams::ReissueAssetBurnAmount ( ) const
inline

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

◆ RestrictedActivationBlock()

unsigned int CChainParams::RestrictedActivationBlock ( ) const
inline

Definition at line 116 of file chainparams.h.

Here is the caller graph for this function:

◆ TurnOffBIP34()

void CChainParams::TurnOffBIP34 ( )

Definition at line 77 of file chainparams.cpp.

◆ TurnOffBIP65()

void CChainParams::TurnOffBIP65 ( )

Definition at line 81 of file chainparams.cpp.

◆ TurnOffBIP66()

void CChainParams::TurnOffBIP66 ( )

Definition at line 85 of file chainparams.cpp.

◆ TurnOffCSV()

void CChainParams::TurnOffCSV ( )

Definition at line 73 of file chainparams.cpp.

◆ TurnOffSegwit()

void CChainParams::TurnOffSegwit ( )

Definition at line 69 of file chainparams.cpp.

◆ TxData()

const ChainTxData& CChainParams::TxData ( ) const
inline

Definition at line 80 of file chainparams.h.

Here is the call graph for this function:

◆ UpdateVersionBitsParameters()

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

Definition at line 63 of file chainparams.cpp.

Member Data Documentation

◆ base58Prefixes

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

Definition at line 133 of file chainparams.h.

◆ chainTxData

ChainTxData CChainParams::chainTxData
protected

Definition at line 142 of file chainparams.h.

◆ checkpointData

CCheckpointData CChainParams::checkpointData
protected

Definition at line 141 of file chainparams.h.

◆ consensus

Consensus::Params CChainParams::consensus
protected

Definition at line 128 of file chainparams.h.

◆ fDefaultConsistencyChecks

bool CChainParams::fDefaultConsistencyChecks
protected

Definition at line 137 of file chainparams.h.

◆ fMineBlocksOnDemand

bool CChainParams::fMineBlocksOnDemand
protected

Definition at line 139 of file chainparams.h.

◆ fMiningRequiresPeers

bool CChainParams::fMiningRequiresPeers
protected

Definition at line 140 of file chainparams.h.

◆ fRequireStandard

bool CChainParams::fRequireStandard
protected

Definition at line 138 of file chainparams.h.

◆ genesis

CBlock CChainParams::genesis
protected

Definition at line 135 of file chainparams.h.

◆ nAddNullQualifierTagBurnAmount

CAmount CChainParams::nAddNullQualifierTagBurnAmount
protected

Definition at line 154 of file chainparams.h.

◆ nAssetActivationHeight

int CChainParams::nAssetActivationHeight
protected

Definition at line 178 of file chainparams.h.

◆ nDefaultPort

int CChainParams::nDefaultPort
protected

Definition at line 130 of file chainparams.h.

◆ nDGWActivationBlock

unsigned int CChainParams::nDGWActivationBlock
protected

Definition at line 170 of file chainparams.h.

◆ nIssueAssetBurnAmount

CAmount CChainParams::nIssueAssetBurnAmount
protected

RVN Start.

Definition at line 146 of file chainparams.h.

◆ nIssueMsgChannelAssetBurnAmount

CAmount CChainParams::nIssueMsgChannelAssetBurnAmount
protected

Definition at line 150 of file chainparams.h.

◆ nIssueQualifierAssetBurnAmount

CAmount CChainParams::nIssueQualifierAssetBurnAmount
protected

Definition at line 151 of file chainparams.h.

◆ nIssueRestrictedAssetBurnAmount

CAmount CChainParams::nIssueRestrictedAssetBurnAmount
protected

Definition at line 153 of file chainparams.h.

◆ nIssueSubAssetBurnAmount

CAmount CChainParams::nIssueSubAssetBurnAmount
protected

Definition at line 148 of file chainparams.h.

◆ nIssueSubQualifierAssetBurnAmount

CAmount CChainParams::nIssueSubQualifierAssetBurnAmount
protected

Definition at line 152 of file chainparams.h.

◆ nIssueUniqueAssetBurnAmount

CAmount CChainParams::nIssueUniqueAssetBurnAmount
protected

Definition at line 149 of file chainparams.h.

◆ nMaxReorganizationDepth

int CChainParams::nMaxReorganizationDepth
protected

Definition at line 174 of file chainparams.h.

◆ nMessagingActivationBlock

unsigned int CChainParams::nMessagingActivationBlock
protected

Definition at line 171 of file chainparams.h.

◆ nMinReorganizationAge

int CChainParams::nMinReorganizationAge
protected

Definition at line 176 of file chainparams.h.

◆ nMinReorganizationPeers

int CChainParams::nMinReorganizationPeers
protected

Definition at line 175 of file chainparams.h.

◆ nPruneAfterHeight

uint64_t CChainParams::nPruneAfterHeight
protected

Definition at line 131 of file chainparams.h.

◆ nReissueAssetBurnAmount

CAmount CChainParams::nReissueAssetBurnAmount
protected

Definition at line 147 of file chainparams.h.

◆ nRestrictedActivationBlock

unsigned int CChainParams::nRestrictedActivationBlock
protected

Definition at line 172 of file chainparams.h.

◆ pchMessageStart

CMessageHeader::MessageStartChars CChainParams::pchMessageStart
protected

Definition at line 129 of file chainparams.h.

◆ strAddNullQualifierTagBurnAddress

std::string CChainParams::strAddNullQualifierTagBurnAddress
protected

Definition at line 165 of file chainparams.h.

◆ strGlobalBurnAddress

std::string CChainParams::strGlobalBurnAddress
protected

Definition at line 168 of file chainparams.h.

◆ strIssueAssetBurnAddress

std::string CChainParams::strIssueAssetBurnAddress
protected

Definition at line 157 of file chainparams.h.

◆ strIssueMsgChannelAssetBurnAddress

std::string CChainParams::strIssueMsgChannelAssetBurnAddress
protected

Definition at line 161 of file chainparams.h.

◆ strIssueQualifierAssetBurnAddress

std::string CChainParams::strIssueQualifierAssetBurnAddress
protected

Definition at line 162 of file chainparams.h.

◆ strIssueRestrictedAssetBurnAddress

std::string CChainParams::strIssueRestrictedAssetBurnAddress
protected

Definition at line 164 of file chainparams.h.

◆ strIssueSubAssetBurnAddress

std::string CChainParams::strIssueSubAssetBurnAddress
protected

Definition at line 159 of file chainparams.h.

◆ strIssueSubQualifierAssetBurnAddress

std::string CChainParams::strIssueSubQualifierAssetBurnAddress
protected

Definition at line 163 of file chainparams.h.

◆ strIssueUniqueAssetBurnAddress

std::string CChainParams::strIssueUniqueAssetBurnAddress
protected

Definition at line 160 of file chainparams.h.

◆ strNetworkID

std::string CChainParams::strNetworkID
protected

Definition at line 134 of file chainparams.h.

◆ strReissueAssetBurnAddress

std::string CChainParams::strReissueAssetBurnAddress
protected

Definition at line 158 of file chainparams.h.

◆ vFixedSeeds

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

Definition at line 136 of file chainparams.h.

◆ vSeeds

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

Definition at line 132 of file chainparams.h.


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