upgrade

package
v2.12.1 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EndlessHeight = uint64(1000000000)

Functions

func AddUpgradePoint added in v2.11.3

func AddUpgradePoint(version uint32, height uint64) error

func CleanupUpgradeBox

func CleanupUpgradeBox()

func InitUpgradeBox

func InitUpgradeBox(box UpgradeBox) error

func IsDexFeeUpgrade

func IsDexFeeUpgrade(sHeight uint64) bool

IsDexFeeUpgrade checks whether current snapshot block height is over dex fee hard fork. Vite pre-mainnet hard forks at snapshot block height 8013367. Dex fee hard fork is an emergency hard fork to solve one wrongly placed order which has caused ViteX failed to display user balances.

func IsDexMiningUpgrade

func IsDexMiningUpgrade(sHeight uint64) bool

func IsDexRobotUpgrade

func IsDexRobotUpgrade(sHeight uint64) bool

func IsDexStableMarketUpgrade

func IsDexStableMarketUpgrade(sHeight uint64) bool

func IsDexUpgrade

func IsDexUpgrade(sHeight uint64) bool

IsDexUpgrade checks whether current snapshot block height is over sprout hard fork. Vite pre-mainnet hard forks at snapshot block height 5442723. Features:

  1. Dynamic quota acquisition. Quota acquisition from staking will reduce when network traffic rate is too high.
  2. Adjustment of quota consumption for some built-in contract transactions and VM instructions.
  3. ViteX decentralized exchange support.

func IsEarthUpgrade

func IsEarthUpgrade(sHeight uint64) bool

func IsLeafUpgrade

func IsLeafUpgrade(sHeight uint64) bool

func IsSeedUpgrade

func IsSeedUpgrade(sHeight uint64) bool

IsSeedUpgrade 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 IsStemUpgrade

func IsStemUpgrade(sHeight uint64) bool

IsStemUpgrade checks whether current snapshot block height is over stem hard fork. Vite pre-mainnet hard forks at snapshot block height 8403110. Features:

  1. Capability of placing/cancelling orders via delegation.
  2. Super VIP membership. Stake and then enjoy zero trading fee! (Additional operator fee cannot be exempted)

func IsUpgradePoint

func IsUpgradePoint(sHeight uint64) bool

func IsVersion10Upgrade

func IsVersion10Upgrade(sHeight uint64) bool

func IsVersion11Upgrade added in v2.11.3

func IsVersion11Upgrade(sHeight uint64) bool

func IsVersionXUpgrade

func IsVersionXUpgrade(sHeight uint64) bool

func NewCustomUpgradeBox

func NewCustomUpgradeBox(points map[string]*UpgradePoint) *upgradeBox

func NewEmptyUpgradeBox

func NewEmptyUpgradeBox() *upgradeBox

func NewLatestUpgradeBox

func NewLatestUpgradeBox() *upgradeBox

all upgrade point is active.

func NewMainnetUpgradeBox

func NewMainnetUpgradeBox() *upgradeBox

Types

type UpgradeBox

type UpgradeBox interface {
	UpgradePoints() []*UpgradePoint
	AddPoint(version uint32, height uint64) UpgradeBox
	// contains filtered or unexported methods
}

type UpgradePoint

type UpgradePoint struct {
	Name    string
	Height  uint64
	Version uint32
}

func GetActivePoints

func GetActivePoints(sHeight uint64) []*UpgradePoint

func GetAllPoints

func GetAllPoints() []*UpgradePoint

func GetCurPoint

func GetCurPoint(sHeight uint64) *UpgradePoint

func GetLatestPoint

func GetLatestPoint() *UpgradePoint

func GetLeafUpgradePoint

func GetLeafUpgradePoint() UpgradePoint

Jump to

Keyboard shortcuts

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