Documentation
¶
Index ¶
- Constants
- func GetConfig(fork Fork) upgrade.Config
- func GetConfigForVersion(version string) upgrade.Config
- func GetConfigWithUpgradeTime(fork Fork, upgradeTime time.Time) upgrade.Config
- func SetTimesTo(c *upgrade.Config, fork Fork, upgradeTime time.Time)
- func TestConfig() map[string]time.Time
- type Fork
Constants ¶
View Source
const LatestVersion = "latest"
LatestVersion represents the latest upgrade configuration for testing
Variables ¶
This section is empty.
Functions ¶
func GetConfig ¶
GetConfig returns an upgrade config with the provided fork scheduled to have been initially activated and all other forks to be unscheduled.
func GetConfigForVersion ¶ added in v1.11.14
GetConfigForVersion returns an upgrade configuration for testing
func GetConfigWithUpgradeTime ¶
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 ¶
SetTimesTo sets the upgrade time of the provided fork, and all prior forks, to the provided upgradeTime.
func TestConfig ¶ added in v1.1.11
TestConfig returns a test upgrade configuration
Types ¶
Click to show internal directories.
Click to hide internal directories.