version

package
v6.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2019 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package version 软件版本号

Index

Constants

This section is empty.

Variables

View Source
var (
	WalletVerKey     = []byte("WalletVerKey")
	BlockChainVerKey = []byte("BlockChainVerKey")
	LocalDBMeta      = []byte("LocalDBMeta")
	MavlTreeVerKey   = []byte("MavlTreeVerKey")

	GitCommit string
)

var

Functions

func GetAppVersion

func GetAppVersion() string

GetAppVersion 获取应用 app 的版本

func GetLocalDBKeyList

func GetLocalDBKeyList() [][]byte

GetLocalDBKeyList 获取本地key列表

func GetLocalDBVersion

func GetLocalDBVersion() string

GetLocalDBVersion 数据库版本解析

格式: v1.v2.v3 如果: v1 升级了, 那么意味着localdb 需要 重新 reindex

func GetVersion

func GetVersion() string

GetVersion 获取版本信息

func SetAppVersion

func SetAppVersion(version string)

SetAppVersion 设置饮用的版本

func SetLocalDBVersion

func SetLocalDBVersion(version string)

SetLocalDBVersion 通过设置版本号,强制重建数据库

Types

This section is empty.

Jump to

Keyboard shortcuts

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