[#AbstractThresholdConditionChecker-GetStateSinceHeightFor]
= xref:AbstractThresholdConditionChecker.adoc[AbstractThresholdConditionChecker]::GetStateSinceHeightFor
:relfileprefix: ../
:mrdocs:

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

== Synopsis

Declared in `&lt;versionbits&lowbar;impl&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
GetStateSinceHeightFor(
    xref:CBlockIndex.adoc[CBlockIndex] const* pindexPrev,
    xref:ThresholdConditionCache.adoc[ThresholdConditionCache]& cache) const;
----

== Return Value

The height at which the current state began&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pindexPrev*
| The parent block from which to compute the state&period;
| *cache*
| The cache of previously computed states, updated by this call&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
