mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-05-02 03:02:54 -04: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"
|
|
}
|
|
}
|