params

package
v0.0.0-...-c9d2d86 Latest Latest
Warning

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

Go to latest
Published: May 25, 2018 License: ISC Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// GlobalStateKey is the key of global state.
	GlobalStateKey = "globalStateKey"

	// AdminKey is the key of admin account.
	AdminKey = "admin"

	// GlobalContractKey is the key of global contract.
	GlobalContractKey = "globalContract"

	// SecurityContractKey is the key of security plugin name / security contract address.
	SecurityContractKey = "securityContract"
)
View Source
const (
	// ProtocolName represents the name of the p2p protocol
	ProtocolName = "L0-NETWORK"
	// ProtocolVersion represents the version of the p2p protocol
	ProtocolVersion = "0.0.1"
)
View Source
const (
	// VersionMajor is Major version component of the current release
	VersionMajor = 0
	// VersionMinor is Minor version component of the current release
	VersionMinor = 8
	// VersionPatch is Patch version component of the current release
	VersionPatch = 0
	// VersionMeta is Version metadata to append to the version string
	VersionMeta = "unstable"
)

Variables

View Source
var (
	ChainID   = coordinate.NewChainCoordinate([]byte{0})
	PeerID    string
	ConnNums  int
	LocalIp   string
	Nvp       bool
	Mongodb   bool
	MaxOccurs int
)

ChainID chain ID

View Source
var Version = func() string {
	v := fmt.Sprintf("%d.%d.%d", VersionMajor, VersionMinor, VersionPatch)
	if VersionMeta != "" {
		v += "-" + VersionMeta
	}
	return v
}()

Version holds the textual version string.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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