6 #ifndef FABCOIN_CONSENSUS_PARAMS_H 7 #define FABCOIN_CONSENSUS_PARAMS_H 78 const uint256&
PowLimit(
bool postfork)
const {
return postfork ? powLimit : powLimitLegacy; }
84 int64_t
DifficultyAdjustmentInterval(uint32_t nheight=0)
const {
return nPowTargetTimespan / (nheight<EquihashFABHeight?nPowTargetSpacing:2*nPowTargetSpacing); }
99 int64_t
DigishieldAveragingWindowTimespan(uint32_t nheight=0)
const {
return nDigishieldPowAveragingWindow * (nheight<EquihashFABHeight?nPowTargetSpacing:2*nPowTargetSpacing); }
100 int64_t
DigishieldMinActualTimespan(uint32_t nheight=0)
const {
return (DigishieldAveragingWindowTimespan(nheight) * (100 - nDigishieldPowMaxAdjustUp )) / 100; }
101 int64_t
DigishieldMaxActualTimespan(uint32_t nheight=0)
const {
return (DigishieldAveragingWindowTimespan(nheight) * (100 + nDigishieldPowMaxAdjustDown)) / 100; }
106 #endif // FABCOIN_CONSENSUS_PARAMS_H
int64_t nPowTargetTimespan
bool ForceSegwit
whether segwit is active
bool bZawyLwmaSolvetimeLimitation
bool fPowAllowMinDifficultyBlocks
int BIP66Height
Block height at which BIP66 becomes active.
int64_t nDigishieldPowMaxAdjustDown
int64_t DigishieldMaxActualTimespan(uint32_t nheight=0) const
const uint256 & PowLimit(bool postfork) const
uint32_t FABHeight
Block height at which Fabcoin Equihash hard fork becomes active.
int nFixUTXOCacheHFHeight
int nSubsidyHalvingInterval
uint256 powLimit
Proof of work parameters.
Struct for each individual consensus rule change using BIP9.
int BIP34Height
Block height and hash at which BIP34 becomes active.
int CoinbaseLock
Block height before which the coinbase subsidy will be locked for the same period.
int64_t nStartTime
Start MedianTime for version bits miner confirmation.
int64_t nPowTargetSpacing
uint32_t ContractHeight
Block height at which Fabcoin Smart Contract hard fork becomes active.
int64_t nDigishieldPowAveragingWindow
uint32_t nMinerConfirmationWindow
Parameters that influence chain consensus.
int64_t DifficultyAdjustmentInterval(uint32_t nheight=0) const
int BIP65Height
Block height at which BIP65 becomes active.
int64_t nTimeout
Timeout/expiry MedianTime for the deployment attempt.
uint256 nMinimumChainWork
uint256 defaultAssumeValid
int64_t MaxFutureBlockTime
Limit BITCOIN_MAX_FUTURE_BLOCK_TIME.
uint32_t EquihashFABHeight
Block height at which EquihashFAB (184,7) becomes active.
uint32_t nRuleChangeActivationThreshold
Minimum blocks including miner confirmation of the total of 2016 blocks in a retargeting period...
int64_t DigishieldMinActualTimespan(uint32_t nheight=0) const
int64_t nDigishieldPowMaxAdjustUp
int bit
Bit position to select the particular bit in nVersion.
int64_t DigishieldAveragingWindowTimespan(uint32_t nheight=0) const
uint32_t LWMAHeight
Block height at which LWMA becomes active.
int64_t nZawyLwmaAveragingWindow