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

Function DeploymentEnabled

src/deploymentstatus.h:43–47  ·  view source on GitHub ↗

Determine if a deployment is enabled (can ever be active) */

Source from the content-addressed store, hash-verified

41
42/** Determine if a deployment is enabled (can ever be active) */
43inline bool DeploymentEnabled(const Consensus::Params& params, Consensus::BuriedDeployment dep)
44{
45 assert(Consensus::ValidDeployment(dep));
46 return params.DeploymentHeight(dep) != std::numeric_limits<int>::max();
47}
48
49inline bool DeploymentEnabled(const Consensus::Params& params, Consensus::DeploymentPos dep)
50{

Callers 1

SoftForkDescPushBackFunction · 0.85

Calls 2

ValidDeploymentFunction · 0.85
DeploymentHeightMethod · 0.80

Tested by

no test coverage detected