forksprotocol

package
v0.4.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

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(logger *zap.Logger, 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL