prysm-pulse/runtime/version/fork.go

21 lines
258 B
Go
Raw Normal View History

package version
const (
Phase0 = iota
Altair
Bellatrix
)
2021-10-09 13:27:34 +00:00
func String(version int) string {
switch version {
case Phase0:
return "phase0"
case Altair:
return "altair"
case Bellatrix:
return "bellatrix"
2021-10-09 13:27:34 +00:00
default:
return "unknown version"
}
}