Documentation
¶
Index ¶
Constants ¶
const ( BuildMainnet = 0x1 Build2k = 0x2 BuildDebug = 0x3 BuildCalibnet = 0x4 )
const BlockDelaySecs = builtin.EpochDurationSeconds
const TicketRandomnessLookback = abi.ChainEpoch(1)
const UpgradeSmokeHeight = 51000
Variables ¶
var BuildType int
Populated by Params
var BuildVersion string
Ex: "1.2.3" or "1.2.3-rcX"
var BuildVersionArray = [3]int{1, 28, 1}
Intent: Major.Network.Patch
var BuildVersionRC = 0
RC
var Clock = clock.New()
Clock is the global clock for the system. In standard builds, we use a real-time clock, which maps to the `time` package.
Tests that need control of time can replace this variable with clock.NewMock(). Always use real time for socket/stream deadlines.
var CurrentCommit string
var EquivocationDelaySecs = uint64(2)
var IsOpencl string
/////START BUILD_TIME POPULATED VARS///////
var PropagationDelaySecs = uint64(10)
Functions ¶
func BuildTypeString ¶
func BuildTypeString() string
func ClusterMachineVersionLabel ¶ added in v1.28.1
func ClusterMachineVersionLabel() string
ClusterMachineVersionLabel returns the dotted release (BuildVersion) plus an optional short git hash for cluster UI, e.g. "1.27.4 abcdef1".
func CommitIDPrefix ¶ added in v1.28.1
func CommitIDPrefix() string
CommitIDPrefix returns the first 7 characters of the git commit id embedded in CurrentCommit (+git_<hash>_<committer ISO time>). Empty when no commit segment is present.
func SetAddressNetwork ¶
func UserVersion ¶
func UserVersion() string
Types ¶
This section is empty.