[#VersionBitsConditionChecker] = VersionBitsConditionChecker :mrdocs: Class to implement versionbits logic. == Synopsis Declared in `<versionbits_impl.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class VersionBitsConditionChecker : public xref:AbstractThresholdConditionChecker.adoc[AbstractThresholdConditionChecker] ---- == Base Classes [cols="1,4"] |=== | Name| Description | `xref:AbstractThresholdConditionChecker.adoc[AbstractThresholdConditionChecker]` | Abstract class that implements BIP9‐style threshold logic, and caches results. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:VersionBitsConditionChecker/2constructor-05.adoc[`VersionBitsConditionChecker`] [.small]#[constructor]# | Constructors | xref:VersionBitsConditionChecker/Condition-05.adoc[`Condition`] | Returns whether a version number signals this deployment's bit. | xref:AbstractThresholdConditionChecker/GetStateFor.adoc[`GetStateFor`] | Returns the state for pindex A based on parent pindexPrev B. Applies any state transition if conditions are present. Caches state from first block of period. | xref:AbstractThresholdConditionChecker/GetStateSinceHeightFor.adoc[`GetStateSinceHeightFor`] | Returns the height since when the ThresholdState has started for pindex A based on parent pindexPrev B, all blocks of a period share the same | xref:AbstractThresholdConditionChecker/GetStateStatisticsFor.adoc[`GetStateStatisticsFor`] | Returns the numerical statistics of an in‐progress BIP9 softfork in the period including pindex If provided, signalling_blocks is set to true/false based on whether each block in the period signalled | xref:VersionBitsConditionChecker/Mask.adoc[`Mask`] | Returns the version bit mask for this deployment. |=== == Protected Member Functions [cols="1,4"] |=== | Name| Description | xref:VersionBitsConditionChecker/BeginTime.adoc[`BeginTime`] [.small]#[virtual]# | Returns the deployment's configured start time. | xref:VersionBitsConditionChecker/Condition-0f.adoc[`Condition`] [.small]#[virtual]# | Returns whether the block's version signals this deployment's bit. | xref:VersionBitsConditionChecker/EndTime.adoc[`EndTime`] [.small]#[virtual]# | Returns the deployment's configured timeout time. | xref:VersionBitsConditionChecker/MinActivationHeight.adoc[`MinActivationHeight`] [.small]#[virtual]# | Returns the deployment's configured minimum activation height. | xref:VersionBitsConditionChecker/Period.adoc[`Period`] [.small]#[virtual]# | Returns the deployment's configured retarget period length. | xref:VersionBitsConditionChecker/Threshold.adoc[`Threshold`] [.small]#[virtual]# | Returns the deployment's configured signalling threshold. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#