Changeset View
Changeset View
Standalone View
Standalone View
src/consensus/params.h
Show First 20 Lines • Show All 124 Lines • ▼ Show 20 Lines | struct Params { | ||||
int64_t nPowTargetSpacing; | int64_t nPowTargetSpacing; | ||||
int64_t nPowTargetTimespan; | int64_t nPowTargetTimespan; | ||||
int64_t DifficultyAdjustmentInterval() const { | int64_t DifficultyAdjustmentInterval() const { | ||||
return nPowTargetTimespan / nPowTargetSpacing; | return nPowTargetTimespan / nPowTargetSpacing; | ||||
} | } | ||||
uint256 nMinimumChainWork; | uint256 nMinimumChainWork; | ||||
BlockHash defaultAssumeValid; | BlockHash defaultAssumeValid; | ||||
/** Soft consensus parameters, used in conjunction with Avalanche */ | |||||
int64_t earlyBlockPowTargetPenaltyFactor; | |||||
int64_t earlyBlockPowTargetPenaltyWindow; | |||||
int DeploymentHeight(BuriedDeployment dep) const { | int DeploymentHeight(BuriedDeployment dep) const { | ||||
switch (dep) { | switch (dep) { | ||||
case DEPLOYMENT_P2SH: | case DEPLOYMENT_P2SH: | ||||
return BIP16Height; | return BIP16Height; | ||||
case DEPLOYMENT_HEIGHTINCB: | case DEPLOYMENT_HEIGHTINCB: | ||||
return BIP34Height; | return BIP34Height; | ||||
case DEPLOYMENT_CLTV: | case DEPLOYMENT_CLTV: | ||||
return BIP65Height; | return BIP65Height; | ||||
Show All 12 Lines |