prysm-pulse/runtime/version/fork.go

24 lines
301 B
Go
Raw Normal View History

package version
const (
Phase0 = iota
Altair
Bellatrix
Capella
)
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"
case Capella:
return "capella"
2021-10-09 13:27:34 +00:00
default:
return "unknown version"
}
}