Changeset View
Changeset View
Standalone View
Standalone View
src/consensus/params.h
Show All 32 Lines | struct Params { | ||||
/** Block height at which UAHF kicks in */ | /** Block height at which UAHF kicks in */ | ||||
int uahfHeight; | int uahfHeight; | ||||
/** Block height at which the new DAA becomes active */ | /** Block height at which the new DAA becomes active */ | ||||
int daaHeight; | int daaHeight; | ||||
/** Block height at which the magnetic anomaly activation becomes active */ | /** Block height at which the magnetic anomaly activation becomes active */ | ||||
int magneticAnomalyHeight; | int magneticAnomalyHeight; | ||||
/** Unix time used for MTP activation of Nov 15 2019 12:00:00 UTC upgrade */ | /** Unix time used for MTP activation of Nov 15 2019 12:00:00 UTC upgrade */ | ||||
int gravitonActivationTime; | int gravitonActivationTime; | ||||
/** Unix time used for MTP activation of 15 May 2020 12:00:00 UTC upgrade */ | |||||
int phononActivationTime; | |||||
/** Proof of work parameters */ | /** Proof of work parameters */ | ||||
uint256 powLimit; | uint256 powLimit; | ||||
bool fPowAllowMinDifficultyBlocks; | bool fPowAllowMinDifficultyBlocks; | ||||
bool fPowNoRetargeting; | bool fPowNoRetargeting; | ||||
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; | ||||
uint256 defaultAssumeValid; | uint256 defaultAssumeValid; | ||||
}; | }; | ||||
} // namespace Consensus | } // namespace Consensus | ||||
#endif // BITCOIN_CONSENSUS_PARAMS_H | #endif // BITCOIN_CONSENSUS_PARAMS_H |