fork

package
v2.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2019 License: GPL-3.0 Imports: 5 Imported by: 24

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckForkPoints

func CheckForkPoints(points config.ForkPoints) error

func GetForkPoints

func GetForkPoints() config.ForkPoints

func GetRecentForkName

func GetRecentForkName(blockHeight uint64) string

func IsForkPoint

func IsForkPoint(snapshotHeight uint64) bool

func IsInit

func IsInit() bool

func IsSeedFork

func IsSeedFork(snapshotHeight uint64) bool

* @TODO add feature affected by this fork use by a. xxx eg.

b. xxx eg.

func SetForkPoints

func SetForkPoints(points *config.ForkPoints)

Types

type ForkPointItem

type ForkPointItem struct {
	config.ForkPoint
	// contains filtered or unexported fields
}

type ForkPointList

type ForkPointList []*ForkPointItem

func GetForkPointList

func GetForkPointList() ForkPointList

func (ForkPointList) Len

func (a ForkPointList) Len() int

func (ForkPointList) Less

func (a ForkPointList) Less(i, j int) bool

func (ForkPointList) Swap

func (a ForkPointList) Swap(i, j int)

type ForkPointMap

type ForkPointMap map[string]*ForkPointItem

Jump to

Keyboard shortcuts

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