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.
Declared in <versionbits_impl.h>
ThresholdState
GetStateFor(
CBlockIndex const* pindexPrev,
ThresholdConditionCache& cache) const;
The threshold state for the block following pindexPrev.
| Name | Description |
|---|---|
| pindexPrev | The parent block from which to compute the state. |
| cache | The cache of previously computed states, updated by this call. |