6 #ifndef BITCOIN_CONSENSUS_PARAMS_H 7 #define BITCOIN_CONSENSUS_PARAMS_H 57 static constexpr int64_t
NO_TIMEOUT = std::numeric_limits<int64_t>::max();
150 return std::numeric_limits<int>::max();
156 #endif // BITCOIN_CONSENSUS_PARAMS_H static constexpr int64_t NO_TIMEOUT
Constant for nTimeout very far in the future.
int min_activation_height
If lock in occurs, delay activation until at least this block height.
int64_t nPowTargetTimespan
bool fPowAllowMinDifficultyBlocks
static constexpr int64_t ALWAYS_ACTIVE
Special value for nStartTime indicating that the deployment is always active.
int BIP66Height
Block height at which BIP66 becomes active.
int CSVHeight
Block height at which CSV (BIP68, BIP112 and BIP113) becomes active.
std::map< uint256, uint32_t > script_flag_exceptions
Hashes of blocks that.
Transaction validation functions.
int nSubsidyHalvingInterval
uint256 powLimit
Proof of work parameters.
Struct for each individual consensus rule change using BIP9.
int DeploymentHeight(BuriedDeployment dep) const
int BIP34Height
Block height and hash at which BIP34 becomes active.
int64_t nStartTime
Start MedianTime for version bits miner confirmation.
int64_t nPowTargetSpacing
bool signet_blocks
If true, witness commitments contain a payload equal to a Bitcoin Script solution to the signet chall...
static constexpr int64_t NEVER_ACTIVE
Special value for nStartTime indicating that the deployment is never active.
uint32_t nMinerConfirmationWindow
Parameters that influence chain consensus.
std::chrono::seconds PowTargetSpacing() const
int BIP65Height
Block height at which BIP65 becomes active.
int64_t DifficultyAdjustmentInterval() const
int64_t nTimeout
Timeout/expiry MedianTime for the deployment attempt.
uint256 nMinimumChainWork
The best chain should have at least this much work.
bool enforce_BIP94
Enfore BIP94 timewarp attack mitigation.
uint256 defaultAssumeValid
By default assume that the signatures in ancestors of this block are valid.
std::vector< uint8_t > signet_challenge
int MinBIP9WarningHeight
Don't warn about unknown BIP 9 activations below this height.
uint32_t nRuleChangeActivationThreshold
Minimum blocks including miner confirmation of the total of 2016 blocks in a retargeting period...
int SegwitHeight
Block height at which Segwit (BIP141, BIP143 and BIP147) becomes active.
int bit
Bit position to select the particular bit in nVersion.
BuriedDeployment
A buried deployment is one where the height of the activation has been hardcoded into the client impl...
constexpr bool ValidDeployment(BuriedDeployment dep)
BIP9Deployment vDeployments[MAX_VERSION_BITS_DEPLOYMENTS]