build

package
v1.28.2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: Apache-2.0, MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	BuildMainnet  = 0x1
	Build2k       = 0x2
	BuildDebug    = 0x3
	BuildCalibnet = 0x4
)
View Source
const BlockDelaySecs = builtin.EpochDurationSeconds
View Source
const TicketRandomnessLookback = abi.ChainEpoch(1)
View Source
const UpgradeSmokeHeight = 51000

Variables

View Source
var BuildType int

Populated by Params

View Source
var BuildVersion string

Ex: "1.2.3" or "1.2.3-rcX"

View Source
var BuildVersionArray = [3]int{1, 28, 2}

Intent: Major.Network.Patch

View Source
var BuildVersionRC = 2

RC

View Source
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.

View Source
var CurrentCommit string
View Source
var EquivocationDelaySecs = uint64(2)
View Source
var IsOpencl string

/////START BUILD_TIME POPULATED VARS///////

View Source
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 SetAddressNetwork(n address.Network)

func UserVersion

func UserVersion() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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