prysm-pulse/runtime/version/fork.go

29 lines
423 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"
}
}
// All returns a list of all known fork versions.
func All() []int {
return []int{Phase0, Altair, Bellatrix, Capella}
}