lotus/build/version.go

27 lines
667 B
Go
Raw Normal View History

package build
2019-07-02 17:45:03 +00:00
// Version is the local build version, set by build system
2019-12-05 15:46:48 +00:00
const Version = "0.11.0"
// APIVersion is a hex semver version of the rpc api exposed
//
// M M P
// A I A
// J N T
// O O C
// R R H
// |\vv/|
// vv vv
2019-12-05 15:46:48 +00:00
const APIVersion = 0x000b01
const (
MajorMask = 0xff0000
MinorMask = 0xffff00
PatchMask = 0xffffff
2019-07-23 21:55:19 +00:00
)
// VersionInts returns (major, minor, patch) versions
func VersionInts(version uint32) (uint32, uint32, uint32) {
return (version & MajorMask) >> 16, (version & MinorMask) >> 8, version & PatchMask
}