Documentation ¶
Index ¶
- func CheckForkPoints(points config.ForkPoints) error
- func GetForkPoints() config.ForkPoints
- func IsActiveForkPoint(snapshotHeight uint64) bool
- func IsDexFeeFork(snapshotHeight uint64) bool
- func IsDexFork(snapshotHeight uint64) bool
- func IsDexMiningFork(snapshotHeight uint64) bool
- func IsDexRobotFork(snapshotHeight uint64) bool
- func IsDexStableMarketFork(snapshotHeight uint64) bool
- func IsEarthFork(snapshotHeight uint64) bool
- func IsForkActive(point ForkPointItem) bool
- func IsInitActiveChecker() bool
- func IsInitForkPoint() bool
- func IsLeafFork(snapshotHeight uint64) bool
- func IsSeedFork(snapshotHeight uint64) bool
- func IsStemFork(snapshotHeight uint64) bool
- func SetActiveChecker(ac ActiveChecker)
- func SetForkPoints(points *config.ForkPoints)
- type ActiveChecker
- type ForkPointItem
- type ForkPointList
- type ForkPointMap
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 IsDexFeeFork ¶
IsDexFeeFork 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 IsDexFork ¶
IsDexFork checks whether current snapshot block height is over sprout hard fork. Vite pre-mainnet hard forks at snapshot block height 5442723. Features:
- Dynamic quota acquisition. Quota acquisition from staking will reduce when network traffic rate is too high.
- Adjustment of quota consumption for some built-in contract transactions and VM instructions.
- ViteX decentralized exchange support.
func IsForkActive ¶
func IsForkActive(point ForkPointItem) bool
func IsSeedFork ¶
IsSeedFork checks whether current snapshot block height is over seed hard fork. Vite pre-mainnet hard forks at snapshot block height 3488471. Contents:
- Vm log list hash add account address and prevHash since seed fork.
- Create contract params add seed count since seed fork.
- Verifier verifies seed count since seed fork.
- Vm interpreters add SEED opcode since seed fork.
func IsStemFork ¶
IsStemFork checks whether current snapshot block height is over stem hard fork. Vite pre-mainnet hard forks at snapshot block height 8403110. Features:
- Capability of placing/cancelling orders via delegation.
- Super VIP membership. Stake and then enjoy zero trading fee! (Additional operator fee cannot be exempted)
func SetActiveChecker ¶
func SetActiveChecker(ac ActiveChecker)
func SetForkPoints ¶
func SetForkPoints(points *config.ForkPoints)
Types ¶
type ActiveChecker ¶
type ActiveChecker interface {
IsForkActive(point ForkPointItem) bool
}
type ForkPointItem ¶
func GetForkPoint ¶
func GetForkPoint(snapshotHeight uint64) *ForkPointItem
func GetLastForkPoint ¶
func GetLastForkPoint() *ForkPointItem
func GetLeafForkPoint ¶
func GetLeafForkPoint() *ForkPointItem
func GetRecentActiveFork ¶
func GetRecentActiveFork(blockHeight uint64) *ForkPointItem
type ForkPointList ¶
type ForkPointList []*ForkPointItem
func GetActiveForkPointList ¶
func GetActiveForkPointList() ForkPointList
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
func GetForkPointMap ¶
func GetForkPointMap() ForkPointMap