DeploymentActiveAfter

Determine if a version-bits deployment is active for the next block.

Synopsis

Declared in <deploymentstatus.h>

bool
DeploymentActiveAfter(
    CBlockIndex const* pindexPrev,
    Consensus::Params const& params,
    Consensus::DeploymentPos dep,
    VersionBitsCache& versionbitscache);

Return Value

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

Parameters

NameDescription
pindexPrevThe block preceding the one being evaluated, or nullptr for genesis.
paramsThe consensus parameters holding the deployment schedule.
depThe version-bits deployment position to test.
versionbitscacheCache used to evaluate version-bits activation state.