[#ThresholdState]
= ThresholdState
:mrdocs:

Opaque type for BIP9 state&period; See versionbits&lowbar;impl&period;h for details&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
enum class ThresholdState : uint8&lowbar;t;
----

== Members

[cols="1,4"]
|===
| Name| Description
| `DEFINED` 
| First state that each softfork starts out as&period; The genesis block is by definition in this state for each deployment&period;
| `STARTED` 
| For blocks past the starttime&period;
| `LOCKED&lowbar;IN` 
| For at least one retarget period after the first retarget period with STARTED blocks of which at least threshold have the associated bit set in nVersion, until min&lowbar;activation&lowbar;height is reached&period;
| `ACTIVE` 
| For all blocks after the LOCKED&lowbar;IN retarget period (final state)
| `FAILED` 
| For all blocks once the first retarget period after the timeout time is hit, if LOCKED&lowbar;IN wasn&apos;t already reached (final state)
|===


== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:StateName.adoc[`StateName`]
| Get a string with the state name
|===


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