manversion

package
v0.0.0-...-c3c44a6 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Copyright (c) 2018 The MATRIX Authors Distributed under the MIT software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php

Index

Constants

View Source
const (
	VersionAlpha = "1.0.0.0"
	//增加版本号示例
	VersionBeta           = "1.0.0.1"
	VersionGamma          = "1.0.0.2"
	VersionDelta          = "1.0.0.3"
	VersionSignatureGamma = "" /* 132-byte string literal not displayed */
	VersionSignatureDelta = "" /* 132-byte string literal not displayed */

	VersionNumGamma = uint64(5)
	VersionNumDelta = uint64(12)

	VersionAIMine          = "1.0.0.4"
	VersionSignatureAIMine = "" /* 132-byte string literal not displayed */
	VersionNumAIMine       = uint64(17)
)

Variables

View Source
var VersionList [][]byte
View Source
var VersionSignatureMap map[string][]common.Signature

Functions

func CanSwitchGammaCanonicalChain

func CanSwitchGammaCanonicalChain(currentTime int64) bool

func GetVersionSignature

func GetVersionSignature(version []byte) []common.Signature

func IsCorrectVersion

func IsCorrectVersion(version []byte) bool

func VersionCmp

func VersionCmp(version1 string, version2 string) int

version1 > version2 return 1 version1 = version2 return 0 version1 < version2 return -1

Types

This section is empty.

Jump to

Keyboard shortcuts

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