fork

package
v2.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

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 IsDexFeeFork

func IsDexFeeFork(snapshotHeight uint64) bool

func IsDexFork

func IsDexFork(snapshotHeight uint64) bool

func IsForkPoint

func IsForkPoint(snapshotHeight uint64) bool

func IsInit

func IsInit() bool

func IsSeedFork

func IsSeedFork(snapshotHeight uint64) bool

IsSeedFork checks whether current snapshot block height is over seed hard fork. Vite pre-mainnet hard forks at snapshot block height 3488471. Contents:

  1. Vm log list hash add account address and prevHash since seed fork.
  2. Create contract params add seed count since seed fork.
  3. Verifier verifies seed count since seed fork.
  4. Vm interpreters add SEED opcode since seed fork.

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