[#VersionBitsCache]
= VersionBitsCache
:mrdocs:

BIP 9 allows multiple softforks to be deployed in parallel&period; We cache per&hyphen;period state for every one we implement and warning state for each BIP 323 allowed bit&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class VersionBitsCache;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:VersionBitsCache/CheckUnknownActivations.adoc[`CheckUnknownActivations`] 
| Check for unknown activations Returns a vector containing the bit number used for signalling and a bool indicating the deployment is likely to be ACTIVE, rather than merely LOCKED&lowbar;IN&period;
| xref:VersionBitsCache/Clear.adoc[`Clear`] 
| Clears all cached per&hyphen;period and warning state&period;
| xref:VersionBitsCache/ComputeBlockVersion.adoc[`ComputeBlockVersion`] 
| Determine what nVersion a new block should use
| xref:VersionBitsCache/GBTStatus.adoc[`GBTStatus`] 
| Returns the getblocktemplate status of the BIP9 deployments for a given block&period;
| xref:VersionBitsCache/Info.adoc[`Info`] 
| Returns detailed status of a BIP9 deployment for a given block&period;
| xref:VersionBitsCache/IsActiveAfter.adoc[`IsActiveAfter`] 
| Get the BIP9 state for a given deployment for the block after pindexPrev&period;
|===



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