PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
CChainParams Class Referenceabstract

CChainParams defines various tweakable parameters of a given instance of the PRCY 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 uint256HashGenesisBlock () const
 
const MessageStartCharsMessageStart () const
 
int GetDefaultPort () const
 
const uint256ProofOfWorkLimit () const
 
int SubsidyHalvingInterval () const
 
int EnforceBlockUpgradeMajority () const
 Used to check majorities for block version upgrade. More...
 
int RejectBlockOutdatedMajority () const
 
int ToCheckBlockUpgradeMajority () const
 
int MaxReorganizationDepth () const
 
int StakeMinAge () const
 
int DefaultMinerThreads () const
 Used if GeneratePrcycoins is called with a negative number of threads. More...
 
const CBlockGenesisBlock () const
 
bool RequireRPCPassword () const
 
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...
 
bool AllowMinDifficultyBlocks () const
 Allow mining of a min-difficulty block. More...
 
bool SkipProofOfWorkCheck () const
 Skip proof-of-work check: allow mining of any difficulty block. More...
 
bool RequireStandard () const
 Make standard checks. More...
 
int64_t TargetTimespan () const
 
int64_t TargetSpacing () const
 
int64_t Interval () const
 
int COINBASE_MATURITY () const
 
CAmount MNCollateralAmt () const
 
CAmount MinimumStakeAmount () const
 
int MasternodeCountDrift () const
 The masternode count that we will allow the see-saw reward payments to be off by. More...
 
bool MineBlocksOnDemand () const
 Make miner stop after a block is found. More...
 
bool TestnetToBeDeprecatedFieldRPC () const
 In the future use NetworkIDString() for RPC fields. 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::vector< SeedSpec6 > & FixedSeeds () const
 
virtual const Checkpoints::CCheckpointDataCheckpoints () const =0
 
int PoolMaxTransactions () const
 
int64_t StartMasternodePayments () const
 
int64_t Budget_Fee_Confirmations () const
 
CBaseChainParams::Network NetworkID () const
 
bool IsRegTestNet () const
 
int ExtCoinType () const
 
int StealthPrefix () const
 
int IntegratedPrefix () const
 
int ModifierUpgradeBlock () const
 Height or Time Based Activations. More...
 
int LAST_POW_BLOCK () const
 
int START_POA_BLOCK () const
 
int SoftFork () const
 
int PoANewDiff () const
 
int PoAFixTime () const
 
int PoAPaddingBlock () const
 
int PoAPadding () const
 
int BIP65ActivationHeight () const
 
int HardFork () const
 
int HardForkRingSize () const
 
int HardForkRingSize2 () const
 
int SyncFix () const
 
int FixChecks () const
 
int POA_BLOCK_TIME () const
 
int MIN_NUM_POS_BLOCKS_AUDITED () const
 
int MAX_NUM_POS_BLOCKS_AUDITED () const
 
void ChangeMaxReorg (int num) const
 

Public Attributes

int nLastPOWBlock
 
CAmount TOTAL_SUPPLY = 70000000 * COIN
 

Protected Member Functions

 CChainParams ()
 

Protected Attributes

uint256 hashGenesisBlock
 
MessageStartChars pchMessageStart
 
int nDefaultPort
 Raw pub key bytes for the broadcast alert signing key. More...
 
int nExtCoinType
 
int nStealthPrefix
 
int nIntegratedPrefix
 
uint256 bnProofOfWorkLimit
 
int nStakeMinAge
 
int nMaxReorganizationDepth
 
int nSubsidyHalvingInterval
 
int nEnforceBlockUpgradeMajority
 
int nRejectBlockOutdatedMajority
 
int nToCheckBlockUpgradeMajority
 
int64_t nTargetTimespan
 
int64_t nTargetSpacing
 
int nStartPOABlock
 
int nSoftForkBlock
 
int nHardForkBlock
 
int nHardForkBlockRingSize
 
int nHardForkBlockRingSize2
 
int nSyncFix
 
int nFixChecks
 
int nPoANewDiff
 
int nPoAFixTime
 
int nPoAPaddingBlock
 
int nPoAPadding
 
int nMasternodeCountDrift
 
int nMaturity
 
int nModifierUpdateBlock
 
CAmount nMNCollateralAmt
 
CAmount nMinimumStakeAmount
 
int nMinerThreads
 
std::vector< CDNSSeedDatavSeeds
 
std::vector< unsigned char > base58Prefixes [MAX_BASE58_TYPES]
 
CBaseChainParams::Network networkID
 
std::string strNetworkID
 
CBlock genesis
 
std::vector< SeedSpec6vFixedSeeds
 
bool fRequireRPCPassword
 
bool fMiningRequiresPeers
 
bool fAllowMinDifficultyBlocks
 
bool fDefaultConsistencyChecks
 
bool fRequireStandard
 
bool fMineBlocksOnDemand
 
bool fSkipProofOfWorkCheck
 
bool fTestnetToBeDeprecatedFieldRPC
 
bool fHeadersFirstSyncingActive
 
int nPoolMaxTransactions
 
int64_t nStartMasternodePayments
 
int64_t nBudget_Fee_Confirmations
 
int nBIP65ActivationHeight
 
int nPoABlockTime
 
int nMinNumPoSBlocks
 
int nMaxNumPoSBlocks
 

Detailed Description

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

Constructor & Destructor Documentation

◆ CChainParams()

CChainParams::CChainParams ( )
inlineprotected

Definition at line 133 of file chainparams.h.

Member Function Documentation

◆ AllowMinDifficultyBlocks()

bool CChainParams::AllowMinDifficultyBlocks ( ) const
inline

Allow mining of a min-difficulty block.

Definition at line 77 of file chainparams.h.

◆ Base58Prefix()

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

Definition at line 97 of file chainparams.h.

Here is the caller graph for this function:

◆ BIP65ActivationHeight()

int CChainParams::BIP65ActivationHeight ( ) const
inline

Definition at line 118 of file chainparams.h.

◆ Budget_Fee_Confirmations()

int64_t CChainParams::Budget_Fee_Confirmations ( ) const
inline

Definition at line 102 of file chainparams.h.

◆ ChangeMaxReorg()

void CChainParams::ChangeMaxReorg ( int  num) const
inline

Definition at line 193 of file chainparams.h.

Here is the caller graph for this function:

◆ Checkpoints()

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

Implemented in CRegTestParams, CTestNetParams, and CMainParams.

Here is the caller graph for this function:

◆ COINBASE_MATURITY()

int CChainParams::COINBASE_MATURITY ( ) const
inline

Definition at line 85 of file chainparams.h.

Here is the caller graph for this function:

◆ DefaultConsistencyChecks()

bool CChainParams::DefaultConsistencyChecks ( ) const
inline

Default value for -checkmempool and -checkblockindex argument.

Definition at line 75 of file chainparams.h.

◆ DefaultMinerThreads()

int CChainParams::DefaultMinerThreads ( ) const
inline

Used if GeneratePrcycoins is called with a negative number of threads.

Definition at line 67 of file chainparams.h.

◆ DNSSeeds()

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

Definition at line 96 of file chainparams.h.

Here is the caller graph for this function:

◆ EnforceBlockUpgradeMajority()

int CChainParams::EnforceBlockUpgradeMajority ( ) const
inline

Used to check majorities for block version upgrade.

Definition at line 60 of file chainparams.h.

◆ ExtCoinType()

int CChainParams::ExtCoinType ( ) const
inline

Definition at line 105 of file chainparams.h.

◆ FixChecks()

int CChainParams::FixChecks ( ) const
inline

Definition at line 123 of file chainparams.h.

◆ FixedSeeds()

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

Definition at line 98 of file chainparams.h.

◆ GenesisBlock()

const CBlock& CChainParams::GenesisBlock ( ) const
inline

Definition at line 68 of file chainparams.h.

Here is the caller graph for this function:

◆ GetDefaultPort()

int CChainParams::GetDefaultPort ( ) const
inline

Definition at line 56 of file chainparams.h.

Here is the caller graph for this function:

◆ HardFork()

int CChainParams::HardFork ( ) const
inline

Definition at line 119 of file chainparams.h.

◆ HardForkRingSize()

int CChainParams::HardForkRingSize ( ) const
inline

Definition at line 120 of file chainparams.h.

◆ HardForkRingSize2()

int CChainParams::HardForkRingSize2 ( ) const
inline

Definition at line 121 of file chainparams.h.

◆ HashGenesisBlock()

const uint256& CChainParams::HashGenesisBlock ( ) const
inline

Definition at line 54 of file chainparams.h.

◆ HeadersFirstSyncingActive()

bool CChainParams::HeadersFirstSyncingActive ( ) const
inline

Headers first syncing is disabled.

Definition at line 73 of file chainparams.h.

◆ IntegratedPrefix()

int CChainParams::IntegratedPrefix ( ) const
inline

Definition at line 107 of file chainparams.h.

◆ Interval()

int64_t CChainParams::Interval ( ) const
inline

Definition at line 84 of file chainparams.h.

◆ IsRegTestNet()

bool CChainParams::IsRegTestNet ( ) const
inline

Definition at line 104 of file chainparams.h.

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

◆ LAST_POW_BLOCK()

int CChainParams::LAST_POW_BLOCK ( ) const
inline

Definition at line 111 of file chainparams.h.

Here is the caller graph for this function:

◆ MasternodeCountDrift()

int CChainParams::MasternodeCountDrift ( ) const
inline

The masternode count that we will allow the see-saw reward payments to be off by.

Definition at line 89 of file chainparams.h.

Here is the caller graph for this function:

◆ MAX_NUM_POS_BLOCKS_AUDITED()

int CChainParams::MAX_NUM_POS_BLOCKS_AUDITED ( ) const
inline

Definition at line 128 of file chainparams.h.

Here is the caller graph for this function:

◆ MaxReorganizationDepth()

int CChainParams::MaxReorganizationDepth ( ) const
inline

Definition at line 63 of file chainparams.h.

◆ MessageStart()

const MessageStartChars& CChainParams::MessageStart ( ) const
inline

Definition at line 55 of file chainparams.h.

◆ MIN_NUM_POS_BLOCKS_AUDITED()

int CChainParams::MIN_NUM_POS_BLOCKS_AUDITED ( ) const
inline

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

◆ MinimumStakeAmount()

CAmount CChainParams::MinimumStakeAmount ( ) const
inline

Definition at line 87 of file chainparams.h.

Here is the caller graph for this function:

◆ MiningRequiresPeers()

bool CChainParams::MiningRequiresPeers ( ) const
inline

Make miner wait to have peers to avoid wasting work.

Definition at line 71 of file chainparams.h.

◆ MNCollateralAmt()

CAmount CChainParams::MNCollateralAmt ( ) const
inline

Definition at line 86 of file chainparams.h.

Here is the caller graph for this function:

◆ ModifierUpgradeBlock()

int CChainParams::ModifierUpgradeBlock ( ) const
inline

Height or Time Based Activations.

Definition at line 110 of file chainparams.h.

◆ NetworkID()

CBaseChainParams::Network CChainParams::NetworkID ( ) const
inline

Definition at line 103 of file chainparams.h.

Here is the caller graph for this function:

◆ NetworkIDString()

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

Return the network string.

Definition at line 95 of file chainparams.h.

◆ POA_BLOCK_TIME()

int CChainParams::POA_BLOCK_TIME ( ) const
inline

Definition at line 126 of file chainparams.h.

◆ PoAFixTime()

int CChainParams::PoAFixTime ( ) const
inline

Definition at line 115 of file chainparams.h.

◆ PoANewDiff()

int CChainParams::PoANewDiff ( ) const
inline

Definition at line 114 of file chainparams.h.

◆ PoAPadding()

int CChainParams::PoAPadding ( ) const
inline

Definition at line 117 of file chainparams.h.

Here is the caller graph for this function:

◆ PoAPaddingBlock()

int CChainParams::PoAPaddingBlock ( ) const
inline

Definition at line 116 of file chainparams.h.

◆ PoolMaxTransactions()

int CChainParams::PoolMaxTransactions ( ) const
inline

Definition at line 100 of file chainparams.h.

◆ ProofOfWorkLimit()

const uint256& CChainParams::ProofOfWorkLimit ( ) const
inline

Definition at line 57 of file chainparams.h.

Here is the caller graph for this function:

◆ RejectBlockOutdatedMajority()

int CChainParams::RejectBlockOutdatedMajority ( ) const
inline

Definition at line 61 of file chainparams.h.

◆ RequireRPCPassword()

bool CChainParams::RequireRPCPassword ( ) const
inline

Definition at line 69 of file chainparams.h.

◆ RequireStandard()

bool CChainParams::RequireStandard ( ) const
inline

Make standard checks.

Definition at line 81 of file chainparams.h.

◆ SkipProofOfWorkCheck()

bool CChainParams::SkipProofOfWorkCheck ( ) const
inline

Skip proof-of-work check: allow mining of any difficulty block.

Definition at line 79 of file chainparams.h.

◆ SoftFork()

int CChainParams::SoftFork ( ) const
inline

Definition at line 113 of file chainparams.h.

Here is the caller graph for this function:

◆ StakeMinAge()

int CChainParams::StakeMinAge ( ) const
inline

Definition at line 64 of file chainparams.h.

Here is the caller graph for this function:

◆ START_POA_BLOCK()

int CChainParams::START_POA_BLOCK ( ) const
inline

Definition at line 112 of file chainparams.h.

◆ StartMasternodePayments()

int64_t CChainParams::StartMasternodePayments ( ) const
inline

Definition at line 101 of file chainparams.h.

◆ StealthPrefix()

int CChainParams::StealthPrefix ( ) const
inline

Definition at line 106 of file chainparams.h.

◆ SubsidyHalvingInterval()

int CChainParams::SubsidyHalvingInterval ( ) const
inline

Definition at line 58 of file chainparams.h.

◆ SyncFix()

int CChainParams::SyncFix ( ) const
inline

Definition at line 122 of file chainparams.h.

◆ TargetSpacing()

int64_t CChainParams::TargetSpacing ( ) const
inline

Definition at line 83 of file chainparams.h.

Here is the caller graph for this function:

◆ TargetTimespan()

int64_t CChainParams::TargetTimespan ( ) const
inline

Definition at line 82 of file chainparams.h.

◆ TestnetToBeDeprecatedFieldRPC()

bool CChainParams::TestnetToBeDeprecatedFieldRPC ( ) const
inline

In the future use NetworkIDString() for RPC fields.

Definition at line 93 of file chainparams.h.

◆ ToCheckBlockUpgradeMajority()

int CChainParams::ToCheckBlockUpgradeMajority ( ) const
inline

Definition at line 62 of file chainparams.h.

Here is the caller graph for this function:

Member Data Documentation

◆ base58Prefixes

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

Definition at line 169 of file chainparams.h.

◆ bnProofOfWorkLimit

uint256 CChainParams::bnProofOfWorkLimit
protected

Definition at line 142 of file chainparams.h.

◆ fAllowMinDifficultyBlocks

bool CChainParams::fAllowMinDifficultyBlocks
protected

Definition at line 176 of file chainparams.h.

◆ fDefaultConsistencyChecks

bool CChainParams::fDefaultConsistencyChecks
protected

Definition at line 177 of file chainparams.h.

◆ fHeadersFirstSyncingActive

bool CChainParams::fHeadersFirstSyncingActive
protected

Definition at line 182 of file chainparams.h.

◆ fMineBlocksOnDemand

bool CChainParams::fMineBlocksOnDemand
protected

Definition at line 179 of file chainparams.h.

◆ fMiningRequiresPeers

bool CChainParams::fMiningRequiresPeers
protected

Definition at line 175 of file chainparams.h.

◆ fRequireRPCPassword

bool CChainParams::fRequireRPCPassword
protected

Definition at line 174 of file chainparams.h.

◆ fRequireStandard

bool CChainParams::fRequireStandard
protected

Definition at line 178 of file chainparams.h.

◆ fSkipProofOfWorkCheck

bool CChainParams::fSkipProofOfWorkCheck
protected

Definition at line 180 of file chainparams.h.

◆ fTestnetToBeDeprecatedFieldRPC

bool CChainParams::fTestnetToBeDeprecatedFieldRPC
protected

Definition at line 181 of file chainparams.h.

◆ genesis

CBlock CChainParams::genesis
protected

Definition at line 172 of file chainparams.h.

◆ hashGenesisBlock

uint256 CChainParams::hashGenesisBlock
protected

Definition at line 135 of file chainparams.h.

◆ nBIP65ActivationHeight

int CChainParams::nBIP65ActivationHeight
protected

Definition at line 186 of file chainparams.h.

◆ nBudget_Fee_Confirmations

int64_t CChainParams::nBudget_Fee_Confirmations
protected

Definition at line 185 of file chainparams.h.

◆ nDefaultPort

int CChainParams::nDefaultPort
protected

Raw pub key bytes for the broadcast alert signing key.

Definition at line 138 of file chainparams.h.

◆ nEnforceBlockUpgradeMajority

int CChainParams::nEnforceBlockUpgradeMajority
protected

Definition at line 146 of file chainparams.h.

◆ networkID

CBaseChainParams::Network CChainParams::networkID
protected

Definition at line 170 of file chainparams.h.

◆ nExtCoinType

int CChainParams::nExtCoinType
protected

Definition at line 139 of file chainparams.h.

◆ nFixChecks

int CChainParams::nFixChecks
protected

Definition at line 157 of file chainparams.h.

◆ nHardForkBlock

int CChainParams::nHardForkBlock
protected

Definition at line 153 of file chainparams.h.

◆ nHardForkBlockRingSize

int CChainParams::nHardForkBlockRingSize
protected

Definition at line 154 of file chainparams.h.

◆ nHardForkBlockRingSize2

int CChainParams::nHardForkBlockRingSize2
protected

Definition at line 155 of file chainparams.h.

◆ nIntegratedPrefix

int CChainParams::nIntegratedPrefix
protected

Definition at line 141 of file chainparams.h.

◆ nLastPOWBlock

int CChainParams::nLastPOWBlock

Definition at line 129 of file chainparams.h.

◆ nMasternodeCountDrift

int CChainParams::nMasternodeCountDrift
protected

Definition at line 162 of file chainparams.h.

◆ nMaturity

int CChainParams::nMaturity
protected

Definition at line 163 of file chainparams.h.

◆ nMaxNumPoSBlocks

int CChainParams::nMaxNumPoSBlocks
protected

Definition at line 191 of file chainparams.h.

◆ nMaxReorganizationDepth

int CChainParams::nMaxReorganizationDepth
mutableprotected

Definition at line 144 of file chainparams.h.

◆ nMinerThreads

int CChainParams::nMinerThreads
protected

Definition at line 167 of file chainparams.h.

◆ nMinimumStakeAmount

CAmount CChainParams::nMinimumStakeAmount
protected

Definition at line 166 of file chainparams.h.

◆ nMinNumPoSBlocks

int CChainParams::nMinNumPoSBlocks
protected

Definition at line 190 of file chainparams.h.

◆ nMNCollateralAmt

CAmount CChainParams::nMNCollateralAmt
protected

Definition at line 165 of file chainparams.h.

◆ nModifierUpdateBlock

int CChainParams::nModifierUpdateBlock
protected

Definition at line 164 of file chainparams.h.

◆ nPoABlockTime

int CChainParams::nPoABlockTime
protected

Definition at line 189 of file chainparams.h.

◆ nPoAFixTime

int CChainParams::nPoAFixTime
protected

Definition at line 159 of file chainparams.h.

◆ nPoANewDiff

int CChainParams::nPoANewDiff
protected

Definition at line 158 of file chainparams.h.

◆ nPoAPadding

int CChainParams::nPoAPadding
protected

Definition at line 161 of file chainparams.h.

◆ nPoAPaddingBlock

int CChainParams::nPoAPaddingBlock
protected

Definition at line 160 of file chainparams.h.

◆ nPoolMaxTransactions

int CChainParams::nPoolMaxTransactions
protected

Definition at line 183 of file chainparams.h.

◆ nRejectBlockOutdatedMajority

int CChainParams::nRejectBlockOutdatedMajority
protected

Definition at line 147 of file chainparams.h.

◆ nSoftForkBlock

int CChainParams::nSoftForkBlock
protected

Definition at line 152 of file chainparams.h.

◆ nStakeMinAge

int CChainParams::nStakeMinAge
protected

Definition at line 143 of file chainparams.h.

◆ nStartMasternodePayments

int64_t CChainParams::nStartMasternodePayments
protected

Definition at line 184 of file chainparams.h.

◆ nStartPOABlock

int CChainParams::nStartPOABlock
protected

Definition at line 151 of file chainparams.h.

◆ nStealthPrefix

int CChainParams::nStealthPrefix
protected

Definition at line 140 of file chainparams.h.

◆ nSubsidyHalvingInterval

int CChainParams::nSubsidyHalvingInterval
protected

Definition at line 145 of file chainparams.h.

◆ nSyncFix

int CChainParams::nSyncFix
protected

Definition at line 156 of file chainparams.h.

◆ nTargetSpacing

int64_t CChainParams::nTargetSpacing
protected

Definition at line 150 of file chainparams.h.

◆ nTargetTimespan

int64_t CChainParams::nTargetTimespan
protected

Definition at line 149 of file chainparams.h.

◆ nToCheckBlockUpgradeMajority

int CChainParams::nToCheckBlockUpgradeMajority
protected

Definition at line 148 of file chainparams.h.

◆ pchMessageStart

MessageStartChars CChainParams::pchMessageStart
protected

Definition at line 136 of file chainparams.h.

◆ strNetworkID

std::string CChainParams::strNetworkID
protected

Definition at line 171 of file chainparams.h.

◆ TOTAL_SUPPLY

CAmount CChainParams::TOTAL_SUPPLY = 70000000 * COIN

Definition at line 130 of file chainparams.h.

◆ vFixedSeeds

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

Definition at line 173 of file chainparams.h.

◆ vSeeds

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

Definition at line 168 of file chainparams.h.


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