VersionBitsCache

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>

class VersionBitsCache;

Member Functions

NameDescription
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.
Clear Clears all cached per-period and warning state.
ComputeBlockVersion Determine what nVersion a new block should use
GBTStatus Returns the getblocktemplate status of the BIP9 deployments for a given block.
Info Returns detailed status of a BIP9 deployment for a given block.
IsActiveAfter Get the BIP9 state for a given deployment for the block after pindexPrev.