[#Consensus-BIP9Deployment] = xref:Consensus.adoc[Consensus]::BIP9Deployment :relfileprefix: ../ :mrdocs: Struct for each individual consensus rule change using BIP9. == Synopsis Declared in `<consensus/params.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct BIP9Deployment; ---- == Data Members [cols="1,4"] |=== | Name| Description | xref:Consensus/BIP9Deployment/bit.adoc[`bit`] | Bit position to select the particular bit in nVersion. | xref:Consensus/BIP9Deployment/min_activation_height.adoc[`min_activation_height`] | If lock in occurs, delay activation until at least this block height. Note that activation will only occur on a retarget boundary. | xref:Consensus/BIP9Deployment/nStartTime.adoc[`nStartTime`] | Start MedianTime for version bits miner confirmation. Can be a date in the past | xref:Consensus/BIP9Deployment/nTimeout.adoc[`nTimeout`] | Timeout/expiry MedianTime for the deployment attempt. | xref:Consensus/BIP9Deployment/period.adoc[`period`] | Period of blocks to check signalling in (usually retarget period, ie params.DifficultyAdjustmentInterval()) | xref:Consensus/BIP9Deployment/threshold.adoc[`threshold`] | Minimum blocks including miner confirmation of the total of 2016 blocks in a retargeting period, which is also used for BIP9 deployments. Examples: 1916 for 95%, 1512 for testchains. |=== == Static Data Members [cols="1,4"] |=== | Name| Description | xref:Consensus/BIP9Deployment/ALWAYS_ACTIVE.adoc[`ALWAYS_ACTIVE`] | Special value for nStartTime indicating that the deployment is always active. This is useful for testing, as it means tests don't need to deal with the activation process (which takes at least 3 BIP9 intervals). Only tests that specifically test the behaviour during activation cannot use this. | xref:Consensus/BIP9Deployment/NEVER_ACTIVE.adoc[`NEVER_ACTIVE`] | Special value for nStartTime indicating that the deployment is never active. This is useful for integrating the code changes for a new feature prior to deploying it on some or all networks. | xref:Consensus/BIP9Deployment/NO_TIMEOUT.adoc[`NO_TIMEOUT`] | Constant for nTimeout very far in the future. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#