AbstractThresholdConditionChecker::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.

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

NameDescription
pindexPrevThe parent block from which to compute the state.
cacheThe cache of previously computed states, updated by this call.