Documentation ¶
Index ¶
- func BlockHeaderVersionRule(f reflect.StructField, index int, curStructValue interface{}, ...) bool
- func BlockVersionRule(f reflect.StructField, index int, curStructValue interface{}, ...) bool
- func CheckBlock(block *types.Block, funcname string) berr.ErrCode
- func GetAppVersionNum() uint32
- func GetAppVersionString() string
- func GetStringVersion(version uint32) string
- func GetUintVersion(version string) uint32
- func GetVersionNumByBlockNum(blockNum uint64) uint32
- func Init() error
- func TrxVersionRule(f reflect.StructField, index int, curStructValue interface{}, ...) bool
- type VersionInfo
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 GetAppVersionNum ¶
func GetAppVersionNum() uint32
func GetAppVersionString ¶
func GetAppVersionString() string
func GetStringVersion ¶
func GetUintVersion ¶
func GetVersionNumByBlockNum ¶
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
Click to show internal directories.
Click to hide internal directories.