Fabcoin Core  0.16.2
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

const uint256PowLimit (bool postfork) const
 
int64_t DifficultyAdjustmentInterval (uint32_t nheight=0) const
 
int64_t DigishieldAveragingWindowTimespan (uint32_t nheight=0) const
 
int64_t DigishieldMinActualTimespan (uint32_t nheight=0) const
 
int64_t DigishieldMaxActualTimespan (uint32_t nheight=0) const
 

Public Attributes

std::string strNetworkID
 
uint256 hashGenesisBlock
 
int nSubsidyHalvingInterval
 
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...
 
uint32_t FABHeight
 Block height at which Fabcoin Equihash hard fork becomes active. More...
 
uint32_t LWMAHeight
 Block height at which LWMA becomes active. More...
 
uint32_t ContractHeight
 Block height at which Fabcoin Smart Contract hard fork becomes active. More...
 
uint32_t EquihashFABHeight
 Block height at which EquihashFAB (184,7) becomes active. More...
 
int64_t MaxFutureBlockTime
 Limit BITCOIN_MAX_FUTURE_BLOCK_TIME. More...
 
int CoinbaseLock
 Block height before which the coinbase subsidy will be locked for the same period. More...
 
bool ForceSegwit
 whether segwit is active More...
 
uint32_t nRuleChangeActivationThreshold
 Minimum blocks including miner confirmation of the total of 2016 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...
 
uint256 powLimitLegacy
 
bool fPowAllowMinDifficultyBlocks
 
bool fPowNoRetargeting
 
int64_t nPowTargetTimespan
 
int64_t nPowTargetSpacing
 
uint256 nMinimumChainWork
 
uint256 defaultAssumeValid
 
int nFixUTXOCacheHFHeight
 
int64_t nZawyLwmaAveragingWindow
 
bool bZawyLwmaSolvetimeLimitation
 
uint8_t MaxBlockInterval
 
int64_t nDigishieldPowAveragingWindow
 
int64_t nDigishieldPowMaxAdjustDown
 
int64_t nDigishieldPowMaxAdjustUp
 

Detailed Description

Parameters that influence chain consensus.

Definition at line 39 of file params.h.

Member Function Documentation

int64_t Consensus::Params::DifficultyAdjustmentInterval ( uint32_t  nheight = 0) const
inline

Definition at line 84 of file params.h.

Here is the caller graph for this function:

int64_t Consensus::Params::DigishieldAveragingWindowTimespan ( uint32_t  nheight = 0) const
inline

Definition at line 99 of file params.h.

Here is the caller graph for this function:

int64_t Consensus::Params::DigishieldMaxActualTimespan ( uint32_t  nheight = 0) const
inline

Definition at line 101 of file params.h.

Here is the caller graph for this function:

int64_t Consensus::Params::DigishieldMinActualTimespan ( uint32_t  nheight = 0) const
inline

Definition at line 100 of file params.h.

Here is the caller graph for this function:

const uint256& Consensus::Params::PowLimit ( bool  postfork) const
inline

Definition at line 78 of file params.h.

Here is the caller graph for this function:

Member Data Documentation

uint256 Consensus::Params::BIP34Hash

Definition at line 46 of file params.h.

int Consensus::Params::BIP34Height

Block height and hash at which BIP34 becomes active.

Definition at line 45 of file params.h.

int Consensus::Params::BIP65Height

Block height at which BIP65 becomes active.

Definition at line 48 of file params.h.

int Consensus::Params::BIP66Height

Block height at which BIP66 becomes active.

Definition at line 50 of file params.h.

bool Consensus::Params::bZawyLwmaSolvetimeLimitation

Definition at line 92 of file params.h.

int Consensus::Params::CoinbaseLock

Block height before which the coinbase subsidy will be locked for the same period.

Definition at line 62 of file params.h.

uint32_t Consensus::Params::ContractHeight

Block height at which Fabcoin Smart Contract hard fork becomes active.

Definition at line 56 of file params.h.

uint256 Consensus::Params::defaultAssumeValid

Definition at line 86 of file params.h.

uint32_t Consensus::Params::EquihashFABHeight

Block height at which EquihashFAB (184,7) becomes active.

Definition at line 58 of file params.h.

uint32_t Consensus::Params::FABHeight

Block height at which Fabcoin Equihash hard fork becomes active.

Definition at line 52 of file params.h.

bool Consensus::Params::ForceSegwit

whether segwit is active

Definition at line 64 of file params.h.

bool Consensus::Params::fPowAllowMinDifficultyBlocks

Definition at line 79 of file params.h.

bool Consensus::Params::fPowNoRetargeting

Definition at line 80 of file params.h.

uint256 Consensus::Params::hashGenesisBlock

Definition at line 42 of file params.h.

uint32_t Consensus::Params::LWMAHeight

Block height at which LWMA becomes active.

Definition at line 54 of file params.h.

uint8_t Consensus::Params::MaxBlockInterval

Definition at line 93 of file params.h.

int64_t Consensus::Params::MaxFutureBlockTime

Limit BITCOIN_MAX_FUTURE_BLOCK_TIME.

Definition at line 60 of file params.h.

int64_t Consensus::Params::nDigishieldPowAveragingWindow

Definition at line 96 of file params.h.

int64_t Consensus::Params::nDigishieldPowMaxAdjustDown

Definition at line 97 of file params.h.

int64_t Consensus::Params::nDigishieldPowMaxAdjustUp

Definition at line 98 of file params.h.

int Consensus::Params::nFixUTXOCacheHFHeight

Definition at line 88 of file params.h.

uint32_t Consensus::Params::nMinerConfirmationWindow

Definition at line 71 of file params.h.

uint256 Consensus::Params::nMinimumChainWork

Definition at line 85 of file params.h.

int64_t Consensus::Params::nPowTargetSpacing

Definition at line 82 of file params.h.

int64_t Consensus::Params::nPowTargetTimespan

Definition at line 81 of file params.h.

uint32_t Consensus::Params::nRuleChangeActivationThreshold

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

Examples: 1916 for 95%, 1512 for testchains.

Definition at line 70 of file params.h.

int Consensus::Params::nSubsidyHalvingInterval

Definition at line 43 of file params.h.

int64_t Consensus::Params::nZawyLwmaAveragingWindow

Definition at line 91 of file params.h.

uint256 Consensus::Params::powLimit

Proof of work parameters.

Definition at line 75 of file params.h.

uint256 Consensus::Params::powLimitLegacy

Definition at line 76 of file params.h.

std::string Consensus::Params::strNetworkID

Definition at line 40 of file params.h.

BIP9Deployment Consensus::Params::vDeployments[MAX_VERSION_BITS_DEPLOYMENTS]

Definition at line 72 of file params.h.


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