DeploymentActiveAfter

DeploymentActiveAfter overloads

Synopses

Declared in <deploymentstatus.h>

Whether a deployment is active after the given block, resolved via ChainstateManager.

template<typename DEP>
bool
DeploymentActiveAfter(
    CBlockIndex const* pindexPrev,
    ChainstateManager const& chainman,
    DEP dep);
» more...

Determine if a deployment is active for the next block

bool
DeploymentActiveAfter(
    CBlockIndex const* pindexPrev,
    Consensus::Params const& params,
    Consensus::BuriedDeployment dep,
    VersionBitsCache& versionbitscache);
» more...

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

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

Return Value

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

Parameters

NameDescription
pindexPrevBlock index entry of the block the deployment status is queried after.
chainmanThe chainstate manager providing consensus parameters and cache.
depThe deployment to query.
paramsThe consensus parameters holding the deployment schedule.
versionbitscacheUnused for buried deployments; present for overload symmetry.