Versions in this module Expand all Collapse all v0 v0.0.4 Jan 15, 2025 v0.0.1 Jan 15, 2025 Changes in this version + var ErrNoPreviousVersion = errors.New("no previous version") + var ErrVersionNotFound = errors.New("could not find an entry in the fork schedule") + func CreateForkDigest(genesisTime time.Time, genesisValidatorsRoot []byte) ([4]byte, error) + func Fork(targetEpoch primitives.Epoch) (*ethpb.Fork, error) + func ForkDigestFromEpoch(currentEpoch primitives.Epoch, genesisValidatorsRoot []byte) ([4]byte, error) + func IsForkNextEpoch(genesisTime time.Time, genesisValidatorsRoot []byte) (bool, error) + func NextForkData(currEpoch primitives.Epoch) ([4]byte, primitives.Epoch, error) + func RetrieveForkDataFromDigest(digest [4]byte, genesisValidatorsRoot []byte) ([4]byte, primitives.Epoch, error) + func SortedForkVersions(forkSchedule map[[4]byte]primitives.Epoch) [][4]byte + type ForkScheduleEntry struct + Epoch primitives.Epoch + Name string + Version [fieldparams.VersionLength]byte + type OrderedSchedule []ForkScheduleEntry + func NewOrderedSchedule(b *params.BeaconChainConfig) OrderedSchedule + func (o OrderedSchedule) Len() int + func (o OrderedSchedule) Less(i, j int) bool + func (o OrderedSchedule) Previous(version [fieldparams.VersionLength]byte) ([fieldparams.VersionLength]byte, error) + func (o OrderedSchedule) Swap(i, j int) + func (o OrderedSchedule) VersionForEpoch(epoch primitives.Epoch) ([fieldparams.VersionLength]byte, error) + func (o OrderedSchedule) VersionForName(name string) ([fieldparams.VersionLength]byte, error)