upgradetest

package
v1.11.12-rc.5 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig(fork Fork) upgrade.Config

GetConfig returns an upgrade config with the provided fork scheduled to have been initially activated and all other forks to be unscheduled.

func GetConfigWithUpgradeTime

func GetConfigWithUpgradeTime(fork Fork, upgradeTime time.Time) upgrade.Config

GetConfigWithUpgradeTime returns an upgrade config with the provided fork scheduled to be activated at the provided upgradeTime and all other forks to be unscheduled.

func SetTimesTo

func SetTimesTo(c *upgrade.Config, fork Fork, upgradeTime time.Time)

SetTimesTo sets the upgrade time of the provided fork, and all prior forks, to the provided upgradeTime.

Types

type Fork

type Fork int

Fork is an enum of all the major network upgrades.

const (
	NoUpgrades Fork = iota
	ApricotPhase1
	ApricotPhase2
	ApricotPhase3
	ApricotPhase4
	ApricotPhase5
	ApricotPhasePre6
	ApricotPhase6
	ApricotPhasePost6
	Banff
	Cortina
	Durango
	Etna

	Latest = Etna
)

func (Fork) String

func (f Fork) String() string

Jump to

Keyboard shortcuts

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