mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-23 11:57:18 +00:00
18 lines
209 B
Go
18 lines
209 B
Go
package version
|
|
|
|
const (
|
|
Phase0 = iota
|
|
Altair
|
|
)
|
|
|
|
func String(version int) string {
|
|
switch version {
|
|
case Phase0:
|
|
return "phase0"
|
|
case Altair:
|
|
return "altair"
|
|
default:
|
|
return "unknown version"
|
|
}
|
|
}
|