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.

Synopsis

Declared in <versionbits_impl.h>

ThresholdState
GetStateFor(
    CBlockIndex const* pindexPrev,
    ThresholdConditionCache& cache) const;

Return Value

The threshold state for the block following pindexPrev.

Parameters

Name

Description

pindexPrev

The parent block from which to compute the state.

cache

The cache of previously computed states, updated by this call.

Created with MrDocs