[#DeploymentActiveAt-01a]
= DeploymentActiveAt
:mrdocs:

`DeploymentActiveAt` overloads

== Synopses

Declared in `&lt;deploymentstatus&period;h&gt;`

Whether a deployment is active at the given block, resolved via ChainstateManager&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename DEP&gt;
bool
xref:DeploymentActiveAt-05.adoc[DeploymentActiveAt](
    xref:CBlockIndex.adoc[CBlockIndex] const& index,
    xref:ChainstateManager.adoc[ChainstateManager] const& chainman,
    DEP dep);
----

[.small]#xref:DeploymentActiveAt-05.adoc[_» more&period;&period;&period;_]#

Determine if a deployment is active for this block


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:DeploymentActiveAt-0d.adoc[DeploymentActiveAt](
    xref:CBlockIndex.adoc[CBlockIndex] const& index,
    xref:Consensus/Params.adoc[Consensus::Params] const& params,
    xref:Consensus/BuriedDeployment.adoc[Consensus::BuriedDeployment] dep,
    xref:VersionBitsCache.adoc[VersionBitsCache]& versionbitscache);
----

[.small]#xref:DeploymentActiveAt-0d.adoc[_» more&period;&period;&period;_]#

Determine if a version&hyphen;bits deployment is active for this block&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:DeploymentActiveAt-01d.adoc[DeploymentActiveAt](
    xref:CBlockIndex.adoc[CBlockIndex] const& index,
    xref:Consensus/Params.adoc[Consensus::Params] const& params,
    xref:Consensus/DeploymentPos.adoc[Consensus::DeploymentPos] dep,
    xref:VersionBitsCache.adoc[VersionBitsCache]& versionbitscache);
----

[.small]#xref:DeploymentActiveAt-01d.adoc[_» more&period;&period;&period;_]#

== Return Value

* true if the deployment is active at the given block&period;
* true if the deployment is active at index&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *index*
| Block index entry at which the deployment status is queried&period;
| *chainman*
| The chainstate manager providing consensus parameters and cache&period;
| *dep*
| The deployment to query&period;
| *params*
| The consensus parameters holding the deployment schedule&period;
| *versionbitscache*
| Unused for buried deployments&semi; present for overload symmetry&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
