Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ForkHandler ¶
type ForkHandler interface { // OnFork is called upon a ForkVersion change OnFork(forkVersion ForkVersion) error }
ForkHandler handles a fork event
type ForkVersion ¶
type ForkVersion string
ForkVersion represents a fork version
const ( // ForkVersionEmpty represents an empty version ForkVersionEmpty ForkVersion = "" // GenesisForkVersion is the version for v0 GenesisForkVersion ForkVersion = "genesis" )
func GetCurrentForkVersion ¶
func GetCurrentForkVersion(currentEpoch phase0.Epoch) ForkVersion
GetCurrentForkVersion returns the current fork version
func (ForkVersion) String ¶
func (fv ForkVersion) String() string
Click to show internal directories.
Click to hide internal directories.