Documentation
¶
Index ¶
Constants ¶
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, 1, 3}) PeerID string PublicAddress []string ConnNums int LocalIp string Validator bool )
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.
Click to show internal directories.
Click to hide internal directories.