Class to implement versionbits logic.
Declared in <versionbits_impl.h>
class VersionBitsConditionChecker
: public AbstractThresholdConditionChecker
| Name | Description |
|---|---|
AbstractThresholdConditionChecker | Abstract class that implements BIP9-style threshold logic, and caches results. |
| Name | Description |
|---|---|
VersionBitsConditionChecker [constructor] | Constructors |
Condition | Returns whether a version number signals this deployment's bit. |
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. |
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 |
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 |
Mask | Returns the version bit mask for this deployment. |
| Name | Description |
|---|---|
BeginTime [virtual] | Returns the deployment's configured start time. |
Condition [virtual] | Returns whether the block's version signals this deployment's bit. |
EndTime [virtual] | Returns the deployment's configured timeout time. |
MinActivationHeight [virtual] | Returns the deployment's configured minimum activation height. |
Period [virtual] | Returns the deployment's configured retarget period length. |
Threshold [virtual] | Returns the deployment's configured signalling threshold. |