DeploymentActiveAt

DeploymentActiveAt overloads

Synopses

Declared in <deploymentstatus.h>

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

template<typename DEP>
bool
DeploymentActiveAt(
    CBlockIndex const& index,
    ChainstateManager const& chainman,
    DEP dep);
» more...

Determine if a deployment is active for this block

bool
DeploymentActiveAt(
    CBlockIndex const& index,
    Consensus::Params const& params,
    Consensus::BuriedDeployment dep,
    VersionBitsCache& versionbitscache);
» more...

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

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

Return Value

  • true if the deployment is active at the given block.
  • true if the deployment is active at index.

Parameters

NameDescription
indexBlock index entry at which the deployment status is queried.
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.