mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-26 13:18:57 +00:00
5c580d4a1c
Co-authored-by: Nishant Das <nishdas93@gmail.com>
21 lines
258 B
Go
21 lines
258 B
Go
package version
|
|
|
|
const (
|
|
Phase0 = iota
|
|
Altair
|
|
Bellatrix
|
|
)
|
|
|
|
func String(version int) string {
|
|
switch version {
|
|
case Phase0:
|
|
return "phase0"
|
|
case Altair:
|
|
return "altair"
|
|
case Bellatrix:
|
|
return "bellatrix"
|
|
default:
|
|
return "unknown version"
|
|
}
|
|
}
|