Changeset View
Changeset View
Standalone View
Standalone View
src/consensus/params.h
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Lines | struct Params { | ||||
int MinBIP9WarningHeight; | int MinBIP9WarningHeight; | ||||
uint32_t nMinerConfirmationWindow; | uint32_t nMinerConfirmationWindow; | ||||
BIP9Deployment vDeployments[MAX_VERSION_BITS_DEPLOYMENTS]; | BIP9Deployment vDeployments[MAX_VERSION_BITS_DEPLOYMENTS]; | ||||
/** Proof of work parameters */ | /** Proof of work parameters */ | ||||
uint256 powLimit; | uint256 powLimit; | ||||
bool fPowAllowMinDifficultyBlocks; | bool fPowAllowMinDifficultyBlocks; | ||||
bool fPowNoRetargeting; | bool fPowNoRetargeting; | ||||
int64_t nDAAHalfLife; | |||||
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; | ||||
}; | }; | ||||
} // namespace Consensus | } // namespace Consensus | ||||
#endif // BITCOIN_CONSENSUS_PARAMS_H | #endif // BITCOIN_CONSENSUS_PARAMS_H |