DeploymentActiveAt

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

Synopsis

Declared in <deploymentstatus.h>

bool
DeploymentActiveAt(
    CBlockIndex const& index,
    Consensus::Params const& params,
    Consensus::DeploymentPos dep,
    VersionBitsCache& versionbitscache);

Return Value

true if the deployment is active at index.

Parameters

NameDescription
indexThe block being evaluated.
paramsThe consensus parameters holding the deployment schedule.
depThe version-bits deployment position to test.
versionbitscacheCache used to evaluate version-bits activation state.