[#VersionBitsCache] = VersionBitsCache :mrdocs: BIP 9 allows multiple softforks to be deployed in parallel. We cache per‐period state for every one we implement and warning state for each BIP 323 allowed bit. == Synopsis Declared in `<versionbits.h>` [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_IN. | xref:VersionBitsCache/Clear.adoc[`Clear`] | Clears all cached per‐period and warning state. | 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. | xref:VersionBitsCache/Info.adoc[`Info`] | Returns detailed status of a BIP9 deployment for a given block. | xref:VersionBitsCache/IsActiveAfter.adoc[`IsActiveAfter`] | Get the BIP9 state for a given deployment for the block after pindexPrev. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#