build

package
v1.24.2 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0, MIT Imports: 8 Imported by: 0

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 = strings.Join(lo.Map(BuildVersionArray[:],
	func(i int, _ int) string { return strconv.Itoa(i) }), ".")

Ex: "1.2.3"

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

Intent: Major.Network.Patch

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 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