MCPcopy Create free account
hub / github.com/ElementsProject/elements / DeploymentActiveAfter

Function DeploymentActiveAfter

src/deploymentstatus.h:17–21  ·  view source on GitHub ↗

Determine if a deployment is active for the next block */

Source from the content-addressed store, hash-verified

15
16/** Determine if a deployment is active for the next block */
17inline bool DeploymentActiveAfter(const CBlockIndex* pindexPrev, const Consensus::Params& params, Consensus::BuriedDeployment dep)
18{
19 assert(Consensus::ValidDeployment(dep));
20 return (pindexPrev == nullptr ? 0 : pindexPrev->nHeight + 1) >= params.DeploymentHeight(dep);
21}
22
23inline bool DeploymentActiveAfter(const CBlockIndex* pindexPrev, const Consensus::Params& params, Consensus::DeploymentPos dep)
24{

Callers 13

DeploymentActiveAtFunction · 0.85
PolicyScriptChecksMethod · 0.85
GetBlockScriptFlagsFunction · 0.85
EXCLUSIVE_LOCKS_REQUIREDFunction · 0.85
ContextualCheckBlockFunction · 0.85
getpeginaddressFunction · 0.85
getblocktemplateFunction · 0.85
getnewblockhexFunction · 0.85
SoftForkDescPushBackFunction · 0.85
getblockchaininfoFunction · 0.85

Calls 3

ValidDeploymentFunction · 0.85
DeploymentHeightMethod · 0.80
StateMethod · 0.45

Tested by

no test coverage detected