version

package
v3.8.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockHeaderVersionRule

func BlockHeaderVersionRule(f reflect.StructField, index int, curStructValue interface{}, topStructValue interface{}) bool

func BlockVersionRule

func BlockVersionRule(f reflect.StructField, index int, curStructValue interface{}, topStructValue interface{}) bool

Usage guidance:called in main.initVersionCompatibilityRule:bpl.SetIgnoreRule("Block", version.BlockVersionRule)

func CheckBlock

func CheckBlock(block *types.Block, funcname string) berr.ErrCode

func GetAppVersionNum

func GetAppVersionNum() uint32

func GetAppVersionString

func GetAppVersionString() string

func GetStringVersion

func GetStringVersion(version uint32) string

func GetUintVersion

func GetUintVersion(version string) uint32

func GetVersionNumByBlockNum

func GetVersionNumByBlockNum(blockNum uint64) uint32

func Init

func Init() error

func TrxVersionRule

func TrxVersionRule(f reflect.StructField, index int, curStructValue interface{}, topStructValue interface{}) bool

Types

type VersionInfo

type VersionInfo struct {
	BlockNum      uint64 //new version start from BlockNum(inclusive)
	VersionString string //new version(string)
	VersionNumber uint32 //new version(uint32)
}

func GetVersionByBlockNum

func GetVersionByBlockNum(blockNum uint64) *VersionInfo

Jump to

Keyboard shortcuts

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