DeploymentActiveAfter

Determine if a deployment is active for the next block

Synopsis

Declared in <deploymentstatus.h>

bool
DeploymentActiveAfter(
    CBlockIndex const* pindexPrev,
    Consensus::Params const& params,
    Consensus::BuriedDeployment 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 buried deployment to test.
versionbitscacheUnused for buried deployments; present for overload symmetry.