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

Function DeploymentActiveAt

src/deploymentstatus.h:30–34  ·  view source on GitHub ↗

Determine if a deployment is active for this block */

Source from the content-addressed store, hash-verified

28
29/** Determine if a deployment is active for this block */
30inline bool DeploymentActiveAt(const CBlockIndex& index, const Consensus::Params& params, Consensus::BuriedDeployment dep)
31{
32 assert(Consensus::ValidDeployment(dep));
33 return index.nHeight >= params.DeploymentHeight(dep);
34}
35
36inline bool DeploymentActiveAt(const CBlockIndex& index, const Consensus::Params& params, Consensus::DeploymentPos dep)
37{

Callers 9

NewPoWValidBlockMethod · 0.85
ProcessHeadersMessageMethod · 0.85
ProcessMessageMethod · 0.85
GetBlockScriptFlagsFunction · 0.85
ConnectBlockMethod · 0.85
NeedsRedownloadMethod · 0.85

Calls 3

ValidDeploymentFunction · 0.85
DeploymentActiveAfterFunction · 0.85
DeploymentHeightMethod · 0.80

Tested by

no test coverage detected