forksprotocol

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: GPL-3.0 Imports: 1 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(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 types.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