VersionBitsCache::IsActiveAfter

Get the BIP9 state for a given deployment for the block after pindexPrev.

Synopsis

Declared in <versionbits.h>

[[requires_capability(0x7f2e18fdbaf8), requires_capability(0x7f2e1a0ccfc8), requires_capability(0x7f2e24cb6df8), requires_capability(0x7f2e37ab5318), requires_capability(0x7f2e27e04d18), requires_capability(0x7f2e1eea0cc8), requires_capability(0x7f2e283fba88)]]
bool
IsActiveAfter(
    CBlockIndex const* pindexPrev,
    Consensus::Params const& params,
    Consensus::DeploymentPos pos);

Return Value

True if the deployment is active for the block after pindexPrev.

Parameters

NameDescription
pindexPrevThe parent block preceding the block being evaluated.
paramsThe consensus parameters holding the deployments.
posThe position of the deployment to check.