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.
Click to show internal directories.
Click to hide internal directories.