PIVX Core  5.6.99
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
Consensus::Params Struct Reference

Parameters that influence chain consensus. More...

#include <params.h>

Collaboration diagram for Consensus::Params:
[legend]

Public Member Functions

int64_t TargetTimespan (const bool fV2=true) const
 
uint256 ProofOfStakeLimit (const bool fV2) const
 
bool MoneyRange (const CAmount &nValue) const
 
bool IsTimeProtocolV2 (const int nHeight) const
 
int MasternodeCollateralMinConf () const
 
int FutureBlockTimeDrift (const int nHeight) const
 
bool IsValidBlockTimeStamp (const int64_t nTime, const int nHeight) const
 
bool HasStakeMinAgeOrDepth (const int contextHeight, const uint32_t contextTime, const int utxoFromBlockHeight, const uint32_t utxoFromBlockTime) const
 
libzerocoin::ZerocoinParamsZerocoin_Params (bool useModulusV1) const
 
bool NetworkUpgradeActive (int nHeight, Consensus::UpgradeIndex idx) const
 Returns true if the given network upgrade is active as of the given block height. More...
 
Optional< LLMQParamsGetLLMQParams (uint8_t llmqtype) const
 

Public Attributes

uint256 hashGenesisBlock
 
bool fPowAllowMinDifficultyBlocks
 
bool fPowNoRetargeting
 
uint256 powLimit
 
uint256 posLimitV1
 
uint256 posLimitV2
 
int nBudgetCycleBlocks
 
int nBudgetFeeConfirmations
 
int nCoinbaseMaturity
 
int nFutureTimeDriftPoW
 
int nFutureTimeDriftPoS
 
CAmount nMaxMoneyOut
 
CAmount nMNCollateralAmt
 
int nMNCollateralMinConf
 
CAmount nMNBlockReward
 
CAmount nNewMNBlockReward
 
int64_t nProposalEstablishmentTime
 
int nStakeMinAge
 
int nStakeMinDepth
 
int64_t nTargetTimespan
 
int64_t nTargetTimespanV2
 
int64_t nTargetSpacing
 
int nTimeSlotLength
 
int nMaxProposalPayments
 
std::string strSporkPubKey
 
std::string strSporkPubKeyOld
 
int64_t nTime_EnforceNewSporkKey
 
int64_t nTime_RejectOldSporkKey
 
int height_last_invalid_UTXO
 
int height_last_ZC_AccumCheckpoint
 
int height_last_ZC_WrappedSerials
 
int64_t nPivxBadBlockTime
 
unsigned int nPivxBadBlockBits
 
NetworkUpgrade vUpgrades [MAX_NETWORK_UPGRADES]
 
std::string ZC_Modulus
 
int ZC_MaxPublicSpendsPerTx
 
int ZC_MaxSpendsPerTx
 
int ZC_MinMintConfirmations
 
CAmount ZC_MinMintFee
 
int ZC_MinStakeDepth
 
int ZC_TimeStart
 
int ZC_HeightStart
 
std::map< LLMQType, LLMQParamsllmqs
 
LLMQType llmqTypeChainLocks
 

Detailed Description

Parameters that influence chain consensus.

Definition at line 171 of file params.h.

Member Function Documentation

◆ FutureBlockTimeDrift()

int Consensus::Params::FutureBlockTimeDrift ( const int  nHeight) const
inline

Definition at line 221 of file params.h.

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

◆ GetLLMQParams()

Optional< LLMQParams > Consensus::Params::GetLLMQParams ( uint8_t  llmqtype) const

Definition at line 25 of file params.cpp.

Here is the caller graph for this function:

◆ HasStakeMinAgeOrDepth()

bool Consensus::Params::HasStakeMinAgeOrDepth ( const int  contextHeight,
const uint32_t  contextTime,
const int  utxoFromBlockHeight,
const uint32_t  utxoFromBlockTime 
) const
inline

Definition at line 237 of file params.h.

Here is the call graph for this function:

◆ IsTimeProtocolV2()

bool Consensus::Params::IsTimeProtocolV2 ( const int  nHeight) const
inline

Definition at line 218 of file params.h.

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

◆ IsValidBlockTimeStamp()

bool Consensus::Params::IsValidBlockTimeStamp ( const int64_t  nTime,
const int  nHeight 
) const
inline

Definition at line 229 of file params.h.

Here is the call graph for this function:

◆ MasternodeCollateralMinConf()

int Consensus::Params::MasternodeCollateralMinConf ( ) const
inline

Definition at line 219 of file params.h.

Here is the caller graph for this function:

◆ MoneyRange()

bool Consensus::Params::MoneyRange ( const CAmount nValue) const
inline

Definition at line 217 of file params.h.

Here is the caller graph for this function:

◆ NetworkUpgradeActive()

bool Consensus::Params::NetworkUpgradeActive ( int  nHeight,
Consensus::UpgradeIndex  idx 
) const

Returns true if the given network upgrade is active as of the given block height.

Caller must check that the height is >= 0 (and handle unknown heights).

Definition at line 12 of file params.cpp.

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

◆ ProofOfStakeLimit()

uint256 Consensus::Params::ProofOfStakeLimit ( const bool  fV2) const
inline

Definition at line 216 of file params.h.

Here is the caller graph for this function:

◆ TargetTimespan()

int64_t Consensus::Params::TargetTimespan ( const bool  fV2 = true) const
inline

Definition at line 215 of file params.h.

Here is the caller graph for this function:

◆ Zerocoin_Params()

libzerocoin::ZerocoinParams* Consensus::Params::Zerocoin_Params ( bool  useModulusV1) const
inline

Definition at line 260 of file params.h.

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

Member Data Documentation

◆ fPowAllowMinDifficultyBlocks

bool Consensus::Params::fPowAllowMinDifficultyBlocks

Definition at line 173 of file params.h.

◆ fPowNoRetargeting

bool Consensus::Params::fPowNoRetargeting

Definition at line 174 of file params.h.

◆ hashGenesisBlock

uint256 Consensus::Params::hashGenesisBlock

Definition at line 172 of file params.h.

◆ height_last_invalid_UTXO

int Consensus::Params::height_last_invalid_UTXO

Definition at line 204 of file params.h.

◆ height_last_ZC_AccumCheckpoint

int Consensus::Params::height_last_ZC_AccumCheckpoint

Definition at line 205 of file params.h.

◆ height_last_ZC_WrappedSerials

int Consensus::Params::height_last_ZC_WrappedSerials

Definition at line 206 of file params.h.

◆ llmqs

std::map<LLMQType, LLMQParams> Consensus::Params::llmqs

Definition at line 279 of file params.h.

◆ llmqTypeChainLocks

LLMQType Consensus::Params::llmqTypeChainLocks

Definition at line 281 of file params.h.

◆ nBudgetCycleBlocks

int Consensus::Params::nBudgetCycleBlocks

Definition at line 178 of file params.h.

◆ nBudgetFeeConfirmations

int Consensus::Params::nBudgetFeeConfirmations

Definition at line 179 of file params.h.

◆ nCoinbaseMaturity

int Consensus::Params::nCoinbaseMaturity

Definition at line 180 of file params.h.

◆ nFutureTimeDriftPoS

int Consensus::Params::nFutureTimeDriftPoS

Definition at line 182 of file params.h.

◆ nFutureTimeDriftPoW

int Consensus::Params::nFutureTimeDriftPoW

Definition at line 181 of file params.h.

◆ nMaxMoneyOut

CAmount Consensus::Params::nMaxMoneyOut

Definition at line 183 of file params.h.

◆ nMaxProposalPayments

int Consensus::Params::nMaxProposalPayments

Definition at line 195 of file params.h.

◆ nMNBlockReward

CAmount Consensus::Params::nMNBlockReward

Definition at line 186 of file params.h.

◆ nMNCollateralAmt

CAmount Consensus::Params::nMNCollateralAmt

Definition at line 184 of file params.h.

◆ nMNCollateralMinConf

int Consensus::Params::nMNCollateralMinConf

Definition at line 185 of file params.h.

◆ nNewMNBlockReward

CAmount Consensus::Params::nNewMNBlockReward

Definition at line 187 of file params.h.

◆ nPivxBadBlockBits

unsigned int Consensus::Params::nPivxBadBlockBits

Definition at line 210 of file params.h.

◆ nPivxBadBlockTime

int64_t Consensus::Params::nPivxBadBlockTime

Definition at line 209 of file params.h.

◆ nProposalEstablishmentTime

int64_t Consensus::Params::nProposalEstablishmentTime

Definition at line 188 of file params.h.

◆ nStakeMinAge

int Consensus::Params::nStakeMinAge

Definition at line 189 of file params.h.

◆ nStakeMinDepth

int Consensus::Params::nStakeMinDepth

Definition at line 190 of file params.h.

◆ nTargetSpacing

int64_t Consensus::Params::nTargetSpacing

Definition at line 193 of file params.h.

◆ nTargetTimespan

int64_t Consensus::Params::nTargetTimespan

Definition at line 191 of file params.h.

◆ nTargetTimespanV2

int64_t Consensus::Params::nTargetTimespanV2

Definition at line 192 of file params.h.

◆ nTime_EnforceNewSporkKey

int64_t Consensus::Params::nTime_EnforceNewSporkKey

Definition at line 200 of file params.h.

◆ nTime_RejectOldSporkKey

int64_t Consensus::Params::nTime_RejectOldSporkKey

Definition at line 201 of file params.h.

◆ nTimeSlotLength

int Consensus::Params::nTimeSlotLength

Definition at line 194 of file params.h.

◆ posLimitV1

uint256 Consensus::Params::posLimitV1

Definition at line 176 of file params.h.

◆ posLimitV2

uint256 Consensus::Params::posLimitV2

Definition at line 177 of file params.h.

◆ powLimit

uint256 Consensus::Params::powLimit

Definition at line 175 of file params.h.

◆ strSporkPubKey

std::string Consensus::Params::strSporkPubKey

Definition at line 198 of file params.h.

◆ strSporkPubKeyOld

std::string Consensus::Params::strSporkPubKeyOld

Definition at line 199 of file params.h.

◆ vUpgrades

NetworkUpgrade Consensus::Params::vUpgrades[MAX_NETWORK_UPGRADES]

Definition at line 213 of file params.h.

◆ ZC_HeightStart

int Consensus::Params::ZC_HeightStart

Definition at line 258 of file params.h.

◆ ZC_MaxPublicSpendsPerTx

int Consensus::Params::ZC_MaxPublicSpendsPerTx

Definition at line 252 of file params.h.

◆ ZC_MaxSpendsPerTx

int Consensus::Params::ZC_MaxSpendsPerTx

Definition at line 253 of file params.h.

◆ ZC_MinMintConfirmations

int Consensus::Params::ZC_MinMintConfirmations

Definition at line 254 of file params.h.

◆ ZC_MinMintFee

CAmount Consensus::Params::ZC_MinMintFee

Definition at line 255 of file params.h.

◆ ZC_MinStakeDepth

int Consensus::Params::ZC_MinStakeDepth

Definition at line 256 of file params.h.

◆ ZC_Modulus

std::string Consensus::Params::ZC_Modulus

Definition at line 251 of file params.h.

◆ ZC_TimeStart

int Consensus::Params::ZC_TimeStart

Definition at line 257 of file params.h.


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