erigon-pulse/cl/clparams/version.go
Enrique Jose Avila Asapche fbd18516ae
Deneb container changes beacon-chain (#7420)
Adding container changes for Deneb:
https://github.com/ethereum/consensus-specs/blob/dev/specs/deneb/beacon-chain.md

Changed to use pointers for BlobSideCar
 
 #7389
2023-05-06 18:50:58 +02:00

30 lines
618 B
Go

package clparams
type StateVersion uint8
const (
Phase0Version StateVersion = 0
AltairVersion StateVersion = 1
BellatrixVersion StateVersion = 2
CapellaVersion StateVersion = 3
DenebVersion StateVersion = 4
)
// stringToClVersion converts the string to the current state version.
func StringToClVersion(s string) StateVersion {
switch s {
case "phase0":
return Phase0Version
case "altair":
return AltairVersion
case "bellatrix":
return BellatrixVersion
case "capella":
return CapellaVersion
case "deneb":
return DenebVersion
default:
panic("unsupported fork version: " + s)
}
}