Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add .String() to Fork testing utility #3315

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions upgrade/upgradetest/fork.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,36 @@ const (

// Fork is an enum of all the major network upgrades.
type Fork int

func (f Fork) String() string {
switch f {
case Etna:
return "Etna"
case Durango:
return "Durango"
case Cortina:
return "Cortina"
case Banff:
return "Banff"
case ApricotPhasePost6:
return "ApricotPhasePost6"
case ApricotPhase6:
return "ApricotPhase6"
case ApricotPhasePre6:
return "ApricotPhasePre6"
case ApricotPhase5:
return "ApricotPhase5"
case ApricotPhase4:
return "ApricotPhase4"
case ApricotPhase3:
return "ApricotPhase3"
case ApricotPhase2:
return "ApricotPhase2"
case ApricotPhase1:
return "ApricotPhase1"
case NoUpgrades:
return "NoUpgrades"
default:
return "Unknown"
}
}
Loading