[#Consensus-Params] = xref:Consensus.adoc[Consensus]::Params :relfileprefix: ../ :mrdocs: Parameters that influence chain consensus. == Synopsis Declared in `<consensus/params.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct Params; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:Consensus/Params/DeploymentHeight.adoc[`DeploymentHeight`] | Returns the activation height of a buried deployment. | xref:Consensus/Params/DifficultyAdjustmentInterval.adoc[`DifficultyAdjustmentInterval`] | Returns the number of blocks in one difficulty retargeting interval. | xref:Consensus/Params/PowTargetSpacing.adoc[`PowTargetSpacing`] | Returns the target spacing between blocks. |=== == Data Members [cols="1,4"] |=== | Name| Description | xref:Consensus/Params/BIP34Hash.adoc[`BIP34Hash`] | Hash of the block at which BIP34 becomes active. | xref:Consensus/Params/BIP34Height.adoc[`BIP34Height`] | Block height and hash at which BIP34 becomes active | xref:Consensus/Params/BIP65Height.adoc[`BIP65Height`] | Block height at which BIP65 becomes active | xref:Consensus/Params/BIP66Height.adoc[`BIP66Height`] | Block height at which BIP66 becomes active | xref:Consensus/Params/CSVHeight.adoc[`CSVHeight`] | Block height at which CSV (BIP68, BIP112 and BIP113) becomes active | xref:Consensus/Params/MinBIP9WarningHeight.adoc[`MinBIP9WarningHeight`] | Don't warn about unknown BIP 9 activations below this height. This prevents us from warning about the CSV, segwit and taproot activations. | xref:Consensus/Params/SegwitHeight.adoc[`SegwitHeight`] | Block height at which Segwit (BIP141, BIP143 and BIP147) becomes active. Note that segwit v0 script rules are enforced on all blocks except the BIP 16 exception blocks. | xref:Consensus/Params/defaultAssumeValid.adoc[`defaultAssumeValid`] | By default assume that the signatures in ancestors of this block are valid | xref:Consensus/Params/enforce_BIP94.adoc[`enforce_BIP94`] | Enforce BIP94 timewarp attack mitigation. On testnet4 this also enforces the block storm mitigation. | xref:Consensus/Params/fPowAllowMinDifficultyBlocks.adoc[`fPowAllowMinDifficultyBlocks`] | If true, allow minimum‐difficulty blocks after a long gap (used on test chains). | xref:Consensus/Params/fPowNoRetargeting.adoc[`fPowNoRetargeting`] | If true, disable difficulty retargeting (used on the regression test chain). | xref:Consensus/Params/hashGenesisBlock.adoc[`hashGenesisBlock`] | Hash of the genesis block for this chain. | xref:Consensus/Params/nMinimumChainWork.adoc[`nMinimumChainWork`] | The best chain should have at least this much work | xref:Consensus/Params/nPowTargetSpacing.adoc[`nPowTargetSpacing`] | Target spacing between blocks, in seconds. | xref:Consensus/Params/nPowTargetTimespan.adoc[`nPowTargetTimespan`] | Length of a difficulty retargeting window, in seconds. | xref:Consensus/Params/nSubsidyHalvingInterval.adoc[`nSubsidyHalvingInterval`] | Number of blocks between successive halvings of the block subsidy. | xref:Consensus/Params/powLimit.adoc[`powLimit`] | Proof of work parameters | xref:Consensus/Params/script_flag_exceptions.adoc[`script_flag_exceptions`] | Hashes of blocks that ‐ are known to be consensus valid, and ‐ buried in the chain, and ‐ fail if the default script verify flags are applied. | xref:Consensus/Params/signet_blocks.adoc[`signet_blocks`] | If true, witness commitments contain a payload equal to a Bitcoin Script solution to the signet challenge. See BIP325. | xref:Consensus/Params/signet_challenge.adoc[`signet_challenge`] | Bitcoin Script challenge that signet block witness commitments must solve (BIP325). | xref:Consensus/Params/vDeployments.adoc[`vDeployments`] | Per‐deployment BIP9 version‐bits parameters, indexed by DeploymentPos. |=== == Non-Member Functions [cols="1,4"] |=== | Name| Description | xref:DeploymentEnabled-06.adoc[`::DeploymentEnabled`] | Determine if a version‐bits deployment is enabled (can ever be active). | xref:DeploymentEnabled-0d.adoc[`::DeploymentEnabled`] | Determine if a deployment is enabled (can ever be active) | xref:PermittedDifficultyTransition.adoc[`::PermittedDifficultyTransition`] | Return false if the proof‐of‐work requirement specified by new_nbits at a given height is not possible, given the proof‐of‐work on the prior block as specified by old_nbits. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#