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

Function DeploymentName

src/deploymentinfo.cpp:28–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26};
27
28std::string DeploymentName(Consensus::BuriedDeployment dep)
29{
30 assert(ValidDeployment(dep));
31 switch (dep) {
32 case Consensus::DEPLOYMENT_HEIGHTINCB:
33 return "bip34";
34 case Consensus::DEPLOYMENT_CLTV:
35 return "bip65";
36 case Consensus::DEPLOYMENT_DERSIG:
37 return "bip66";
38 case Consensus::DEPLOYMENT_CSV:
39 return "csv";
40 case Consensus::DEPLOYMENT_SEGWIT:
41 return "segwit";
42 } // no default case, so the compiler can warn about missing cases
43 return "";
44}

Callers

nothing calls this directly

Calls 1

ValidDeploymentFunction · 0.85

Tested by

no test coverage detected