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