[#DeploymentActiveAfter-0b]
= DeploymentActiveAfter
:mrdocs:

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

== Synopsis

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

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

== Return Value

true if the deployment is active for the block after pindexPrev&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pindexPrev*
| The block preceding the one being evaluated, or nullptr for genesis&period;
| *params*
| The consensus parameters holding the deployment schedule&period;
| *dep*
| The version&hyphen;bits deployment position to test&period;
| *versionbitscache*
| Cache used to evaluate version&hyphen;bits activation state&period;
|===


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