Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

Consensus::Params Struct Reference

Parameters that influence chain consensus. More...

#include <params.h>

+ Collaboration diagram for Consensus::Params:

Public Member Functions

int64_t DifficultyAdjustmentInterval () const
 

Public Attributes

uint256 hashGenesisBlock
 
uint256 hashDevnetGenesisBlock
 
int nSubsidyHalvingInterval
 
int nMasternodePaymentsStartBlock
 
int nMasternodePaymentsIncreaseBlock
 
int nMasternodePaymentsIncreasePeriod
 
int nInstantSendConfirmationsRequired
 
int nInstantSendKeepLock
 
int nBudgetPaymentsStartBlock
 
int nBudgetPaymentsCycleBlocks
 
int nBudgetPaymentsWindowBlocks
 
int nSuperblockStartBlock
 
uint256 nSuperblockStartHash
 
int nSuperblockCycle
 
int nGovernanceMinQuorum
 
int nGovernanceFilterElements
 
int nMasternodeMinimumConfirmations
 
int BIP34Height
 Block height and hash at which BIP34 becomes active. More...
 
uint256 BIP34Hash
 
int BIP65Height
 Block height at which BIP65 becomes active. More...
 
int BIP66Height
 Block height at which BIP66 becomes active. More...
 
int DIP0001Height
 Block height at which DIP0001 becomes active. More...
 
int DIP0003Height
 Block height at which DIP0003 becomes active. More...
 
int DIP0003EnforcementHeight
 Block height at which DIP0003 becomes enforced. More...
 
uint256 DIP0003EnforcementHash
 
uint32_t nRuleChangeActivationThreshold
 Minimum blocks including miner confirmation of the total of nMinerConfirmationWindow blocks in a retargeting period, (nPowTargetTimespan / nPowTargetSpacing) which is also used for BIP9 deployments. More...
 
uint32_t nMinerConfirmationWindow
 
BIP9Deployment vDeployments [MAX_VERSION_BITS_DEPLOYMENTS]
 
uint256 powLimit
 Proof of work parameters. More...
 
bool fPowAllowMinDifficultyBlocks
 
bool fPowNoRetargeting
 
int64_t nPowTargetSpacing
 
int64_t nPowTargetTimespan
 
int nPowKGWHeight
 
int nPowDGWHeight
 
uint256 nMinimumChainWork
 
uint256 defaultAssumeValid
 
int nMinimumDifficultyBlocks {0}
 these parameters are only used on devnet and can be configured from the outside More...
 
int nHighSubsidyBlocks {0}
 
int nHighSubsidyFactor {1}
 
std::map< LLMQType, LLMQParamsllmqs
 
LLMQType llmqTypeChainLocks
 
LLMQType llmqTypeInstantSend {LLMQ_NONE}
 

Detailed Description

Parameters that influence chain consensus.

Definition at line 130 of file params.h.

Member Function Documentation

◆ DifficultyAdjustmentInterval()

int64_t Consensus::Params::DifficultyAdjustmentInterval ( ) const
inline

Definition at line 180 of file params.h.

References nPowTargetSpacing, and nPowTargetTimespan.

Referenced by GetNetworkHashPS(), and GetNextWorkRequiredBTC().

Member Data Documentation

◆ BIP34Hash

◆ BIP34Height

◆ BIP65Height

int Consensus::Params::BIP65Height

◆ BIP66Height

int Consensus::Params::BIP66Height

◆ defaultAssumeValid

◆ DIP0001Height

◆ DIP0003EnforcementHash

uint256 Consensus::Params::DIP0003EnforcementHash

◆ DIP0003EnforcementHeight

◆ DIP0003Height

◆ fPowAllowMinDifficultyBlocks

◆ fPowNoRetargeting

◆ hashDevnetGenesisBlock

uint256 Consensus::Params::hashDevnetGenesisBlock

◆ hashGenesisBlock

◆ llmqs

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

Definition at line 189 of file params.h.

Referenced by AppInitParameterInteraction(), llmq::CSigningManager::AsyncSignIfMember(), CDeterministicMNManager::BuildNewListFromBlock(), CalcCbTxMerkleRootQuorums(), CDevNetParams::CDevNetParams(), llmq::CheckLLMQCommitment(), CMainParams::CMainParams(), llmq::CSigSharesManager::CollectSigSharesToAnnounce(), llmq::CSigSharesManager::CollectSigSharesToRequest(), BlockAssembler::CreateNewBlock(), CRegTestParams::CRegTestParams(), CTestNetParams::CTestNetParams(), llmq::CQuorumManager::EnsureQuorumConnections(), llmq::CLLMQUtils::GetAllQuorumMembers(), CDeterministicMNManager::GetListForBlock(), llmq::CQuorumManager::GetQuorum(), llmq::CQuorumBlockProcessor::GetQuorumBlockHash(), llmq::CLLMQUtils::GetQuorumConnections(), llmq::CInstantSendManager::HandleNewRecoveredSig(), llmq::CDKGDebugManager::InitLocalSessionStatus(), llmq::InitSession(), llmq::CQuorumBlockProcessor::IsMiningPhase(), llmq::CLLMQUtils::IsQuorumActive(), llmq::CSigningManager::PreVerifyRecoveredSig(), llmq::CQuorumBlockProcessor::ProcessBlock(), llmq::CQuorumBlockProcessor::ProcessCommitment(), llmq::CQuorumBlockProcessor::ProcessMessage(), llmq::CSigSharesManager::ProcessMessageSigSesAnn(), llmq::CInstantSendManager::ProcessPendingInstantSendLocks(), quorum_info(), quorum_selectquorum(), quorum_sigs_cmd(), llmq::CQuorumManager::ScanQuorums(), llmq::CSigningManager::SelectQuorumForSigning(), llmq::CDKGDebugStatus::ToJson(), llmq::CQuorumManager::UpdatedBlockTip(), CChainParams::UpdateLLMQDevnetParams(), CChainParams::UpdateLLMQTestParams(), llmq::CFinalCommitment::Verify(), llmq::CFinalCommitment::VerifyNull(), and llmq::CSigSharesManager::VerifySigSharesInv().

◆ llmqTypeChainLocks

◆ llmqTypeInstantSend

◆ nBudgetPaymentsCycleBlocks

int Consensus::Params::nBudgetPaymentsCycleBlocks

◆ nBudgetPaymentsStartBlock

◆ nBudgetPaymentsWindowBlocks

int Consensus::Params::nBudgetPaymentsWindowBlocks

◆ nGovernanceFilterElements

int Consensus::Params::nGovernanceFilterElements

◆ nGovernanceMinQuorum

int Consensus::Params::nGovernanceMinQuorum

◆ nHighSubsidyBlocks

int Consensus::Params::nHighSubsidyBlocks {0}

◆ nHighSubsidyFactor

int Consensus::Params::nHighSubsidyFactor {1}

◆ nInstantSendConfirmationsRequired

int Consensus::Params::nInstantSendConfirmationsRequired

◆ nInstantSendKeepLock

◆ nMasternodeMinimumConfirmations

◆ nMasternodePaymentsIncreaseBlock

int Consensus::Params::nMasternodePaymentsIncreaseBlock

◆ nMasternodePaymentsIncreasePeriod

int Consensus::Params::nMasternodePaymentsIncreasePeriod

◆ nMasternodePaymentsStartBlock

◆ nMinerConfirmationWindow

uint32_t Consensus::Params::nMinerConfirmationWindow

◆ nMinimumChainWork

◆ nMinimumDifficultyBlocks

int Consensus::Params::nMinimumDifficultyBlocks {0}

these parameters are only used on devnet and can be configured from the outside

Definition at line 185 of file params.h.

Referenced by AppInitParameterInteraction(), GetNextWorkRequired(), and CChainParams::UpdateSubsidyAndDiffParams().

◆ nPowDGWHeight

◆ nPowKGWHeight

◆ nPowTargetSpacing

◆ nPowTargetTimespan

◆ nRuleChangeActivationThreshold

uint32_t Consensus::Params::nRuleChangeActivationThreshold

Minimum blocks including miner confirmation of the total of nMinerConfirmationWindow blocks in a retargeting period, (nPowTargetTimespan / nPowTargetSpacing) which is also used for BIP9 deployments.

Default BIP9Deployment::nThresholdStart value for deployments where it's not specified and for unknown deployments. Examples: 1916 for 95%, 1512 for testchains.

Definition at line 168 of file params.h.

Referenced by CDevNetParams::CDevNetParams(), CMainParams::CMainParams(), CRegTestParams::CRegTestParams(), CTestNetParams::CTestNetParams(), and WarningBitsConditionChecker::Threshold().

◆ nSubsidyHalvingInterval

int Consensus::Params::nSubsidyHalvingInterval

◆ nSuperblockCycle

◆ nSuperblockStartBlock

◆ nSuperblockStartHash

◆ powLimit

◆ vDeployments


The documentation for this struct was generated from the following file:
Released under the MIT license