Help us shape the future of Go! Take the 2026 Go Developer Survey

upgrade

package
v1.29.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: BSD-3-Clause Imports: 3 Imported by: 3

Documentation

Overview

Package upgrade publishes the canonical Lux genesis-activation timestamp and the runtime tunables consumed at chain birth. Every Lux chain runs the full feature-set from genesis (activate-all-implicitly); the fields here encode values, not gates.

Index

Constants

This section is empty.

Variables

View Source
var (
	Mainnet = Config{
		XChainStopVertexID: ids.FromStringOrPanic("jrGWDh5Po9FMj54depyunNixpia5PN4aAYxfmNzU8n752Rjga"),
		EpochDuration:      5 * time.Minute,
	}
	Testnet = Config{
		XChainStopVertexID: ids.FromStringOrPanic("2D1cmbiG36BqQMRyHt4kFhWarmatA1ighSpND3FeFgz3vFVtCZ"),
		EpochDuration:      30 * time.Second,
	}
	Default = Config{
		XChainStopVertexID: ids.Empty,
		EpochDuration:      30 * time.Second,
	}
)
View Source
var InitiallyActiveTime = time.Date(2020, time.December, 5, 5, 0, 0, 0, time.UTC)

InitiallyActiveTime is the canonical Lux genesis-activation timestamp. It is referenced by code paths that historically demanded "post-fork timestamp" as an input and now want a single deterministic value.

Functions

This section is empty.

Types

type Config

type Config struct {
	XChainStopVertexID ids.ID        `json:"xChainStopVertexID"`
	EpochDuration      time.Duration `json:"epochDuration"`
}

Config carries the runtime tunables that survived the upstream upgrade rip.

  • XChainStopVertexID encodes the per-network stop-vertex ID that pins X-Chain genesis state at boot. It is a value, not a gate.
  • EpochDuration is the LP-181 epoch duration; per-network value (5m on mainnet, 30s on test/dev) tunes consensus pacing.

func GetConfig

func GetConfig(networkID uint32) Config

GetConfig resolves the per-network runtime config.

func (*Config) Validate

func (*Config) Validate() error

Validate is retained for callers that still invoke it; under activate-all- implicitly there is no upgrade ordering to enforce, so the function is a no-op.

Jump to

Keyboard shortcuts

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