Documentation ¶
Index ¶
- Variables
- type Config
- func (c *Config) IsApricotPhase1Activated(t time.Time) bool
- func (c *Config) IsApricotPhase2Activated(t time.Time) bool
- func (c *Config) IsApricotPhase3Activated(t time.Time) bool
- func (c *Config) IsApricotPhase4Activated(t time.Time) bool
- func (c *Config) IsApricotPhase5Activated(t time.Time) bool
- func (c *Config) IsApricotPhase6Activated(t time.Time) bool
- func (c *Config) IsApricotPhasePost6Activated(t time.Time) bool
- func (c *Config) IsApricotPhasePre6Activated(t time.Time) bool
- func (c *Config) IsBanffActivated(t time.Time) bool
- func (c *Config) IsCortinaActivated(t time.Time) bool
- func (c *Config) IsDurangoActivated(t time.Time) bool
- func (c *Config) IsEtnaActivated(t time.Time) bool
- func (c *Config) Validate() error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( InitiallyActiveTime = time.Date(2020, time.December, 5, 5, 0, 0, 0, time.UTC) UnscheduledActivationTime = time.Date(9999, time.December, 1, 0, 0, 0, 0, time.UTC) Mainnet = Config{ ApricotPhase1Time: InitiallyActiveTime, ApricotPhase2Time: InitiallyActiveTime, ApricotPhase3Time: InitiallyActiveTime, ApricotPhase4Time: InitiallyActiveTime, ApricotPhase4MinPChainHeight: 0, ApricotPhase5Time: InitiallyActiveTime, ApricotPhasePre6Time: time.Date(2022, time.September, 8, 20, 0, 0, 0, time.UTC), ApricotPhase6Time: time.Date(2022, time.September, 8, 22, 0, 0, 0, time.UTC), ApricotPhasePost6Time: time.Date(2022, time.September, 9, 3, 0, 0, 0, time.UTC), BanffTime: time.Date(2022, time.December, 19, 16, 0, 0, 0, time.UTC), CortinaTime: time.Date(2023, time.August, 17, 10, 0, 0, 0, time.UTC), CortinaXChainStopVertexID: ids.FromStringOrPanic("ewiCzJQVJLYCzeFMcZSe9huX9h7QJPVeMdgDGcTVGTzeNJ3kY"), DurangoTime: time.Date(2024, time.May, 6, 8, 0, 0, 0, time.UTC), EtnaTime: UnscheduledActivationTime, } Tahoe = Config{ ApricotPhase1Time: InitiallyActiveTime, ApricotPhase2Time: InitiallyActiveTime, ApricotPhase3Time: InitiallyActiveTime, ApricotPhase4Time: InitiallyActiveTime, ApricotPhase4MinPChainHeight: 0, ApricotPhase5Time: InitiallyActiveTime, ApricotPhasePre6Time: time.Date(2022, time.September, 8, 20, 0, 0, 0, time.UTC), ApricotPhase6Time: time.Date(2022, time.September, 8, 22, 0, 0, 0, time.UTC), ApricotPhasePost6Time: time.Date(2022, time.September, 9, 3, 0, 0, 0, time.UTC), BanffTime: time.Date(2022, time.December, 12, 14, 0, 0, 0, time.UTC), CortinaTime: time.Date(2023, time.June, 28, 15, 0, 0, 0, time.UTC), CortinaXChainStopVertexID: ids.FromStringOrPanic("RdWKZYgjgU2NicKHv8mpkR6jgo41W5aNwVhsX5sJgqshDAbQk"), DurangoTime: time.Date(2024, time.April, 4, 0, 0, 0, 0, time.UTC), EtnaTime: UnscheduledActivationTime, } Default = Config{ ApricotPhase1Time: InitiallyActiveTime, ApricotPhase2Time: InitiallyActiveTime, ApricotPhase3Time: InitiallyActiveTime, ApricotPhase4Time: InitiallyActiveTime, ApricotPhase4MinPChainHeight: 0, ApricotPhase5Time: InitiallyActiveTime, ApricotPhasePre6Time: InitiallyActiveTime, ApricotPhase6Time: InitiallyActiveTime, ApricotPhasePost6Time: InitiallyActiveTime, BanffTime: InitiallyActiveTime, CortinaTime: InitiallyActiveTime, CortinaXChainStopVertexID: ids.Empty, DurangoTime: InitiallyActiveTime, EtnaTime: UnscheduledActivationTime, } ErrInvalidUpgradeTimes = errors.New("invalid upgrade configuration") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ApricotPhase1Time time.Time `json:"apricotPhase1Time"` ApricotPhase2Time time.Time `json:"apricotPhase2Time"` ApricotPhase3Time time.Time `json:"apricotPhase3Time"` ApricotPhase4Time time.Time `json:"apricotPhase4Time"` ApricotPhase4MinPChainHeight uint64 `json:"apricotPhase4MinPChainHeight"` ApricotPhase5Time time.Time `json:"apricotPhase5Time"` ApricotPhasePre6Time time.Time `json:"apricotPhasePre6Time"` ApricotPhase6Time time.Time `json:"apricotPhase6Time"` ApricotPhasePost6Time time.Time `json:"apricotPhasePost6Time"` BanffTime time.Time `json:"banffTime"` CortinaTime time.Time `json:"cortinaTime"` CortinaXChainStopVertexID ids.ID `json:"cortinaXChainStopVertexID"` DurangoTime time.Time `json:"durangoTime"` EtnaTime time.Time `json:"etnaTime"` }
func (*Config) IsApricotPhase1Activated ¶
func (*Config) IsApricotPhase2Activated ¶
func (*Config) IsApricotPhase3Activated ¶
func (*Config) IsApricotPhase4Activated ¶
func (*Config) IsApricotPhase5Activated ¶
func (*Config) IsApricotPhase6Activated ¶
func (*Config) IsApricotPhasePost6Activated ¶
func (*Config) IsApricotPhasePre6Activated ¶
Click to show internal directories.
Click to hide internal directories.