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

Returns the numerical statistics of an in&hyphen;progress BIP9 softfork in the period including pindex If provided, signalling&lowbar;blocks is set to true&sol;false based on whether each block in the period signalled

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BIP9Stats.adoc[BIP9Stats]
GetStateStatisticsFor(
    xref:CBlockIndex.adoc[CBlockIndex] const* pindex,
    std::vector&lt;bool&gt;* signalling&lowbar;blocks = nullptr) const;
----

== Return Value

The statistics for the period containing pindex&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pindex*
| The block ending the period to gather statistics for&period;
| *signalling&lowbar;blocks*
| If provided, filled with the per&hyphen;block signalling flags for the period&period;
|===


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