Abstract class that implements BIP9‐style threshold logic, and caches results.

Synopsis

Declared in <versionbits_impl.h>

class AbstractThresholdConditionChecker;

Member Functions

Name

Description

~AbstractThresholdConditionChecker [destructor] [virtual]

Defaulted virtual destructor.

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

Protected Member Functions

Name

Description

BeginTime [virtual]

Returns the timestamp at which the deployment may start.

Condition [virtual]

Returns whether the deployment's condition is met for a block.

EndTime [virtual]

Returns the timestamp at which the deployment times out.

MinActivationHeight [virtual]

Returns the earliest height at which the deployment may activate.

Period [virtual]

Returns the number of blocks in a retarget period.

Threshold [virtual]

Returns the number of signalling blocks required for lock‐in.

Derived Classes

Name

Description

VersionBitsConditionChecker

Class to implement versionbits logic.

Created with MrDocs