mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-23 03:51:29 +00:00
395e49972e
* support generating non-phase0 genesis.ssz * make default (Value) work for EnumValue + lint * remove messy punctuation * Ran gazelle for @kasey * Fix deps viz Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com> Co-authored-by: prestonvanloon <preston@prysmaticlabs.com>
29 lines
423 B
Go
29 lines
423 B
Go
package version
|
|
|
|
const (
|
|
Phase0 = iota
|
|
Altair
|
|
Bellatrix
|
|
Capella
|
|
)
|
|
|
|
func String(version int) string {
|
|
switch version {
|
|
case Phase0:
|
|
return "phase0"
|
|
case Altair:
|
|
return "altair"
|
|
case Bellatrix:
|
|
return "bellatrix"
|
|
case Capella:
|
|
return "capella"
|
|
default:
|
|
return "unknown version"
|
|
}
|
|
}
|
|
|
|
// All returns a list of all known fork versions.
|
|
func All() []int {
|
|
return []int{Phase0, Altair, Bellatrix, Capella}
|
|
}
|