| 26 | }; |
| 27 | |
| 28 | std::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 | } |
nothing calls this directly
no test coverage detected