[#ThresholdConditionCache]
= ThresholdConditionCache
:mrdocs:

Maps a block&apos;s parent to the threshold state for the following period&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
typedef std::map&lt;CBlockIndex const*, ThresholdState&gt; ThresholdConditionCache;
----

== Description

The state applies to blocks whose height is a multiple of Period()&period; The map is indexed by the block&apos;s parent, however, so all keys will either be nullptr or a block with (height &plus; 1) % Period() &equals;&equals; 0&period;


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