Skip to content

Commit

Permalink
params: fix timestamp display in fork banner (ethereum#26553)
Browse files Browse the repository at this point in the history
  • Loading branch information
fjl authored and shekhirin committed Jun 6, 2023
1 parent ee5f3ef commit 14dbb77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions params/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -591,13 +591,13 @@ func (c *ChainConfig) Description() string {
// Create a list of forks post-merge
banner += "Post-Merge hard forks (timestamp based):\n"
if c.ShanghaiTime != nil {
banner += fmt.Sprintf(" - Shanghai: @%-10v (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/shanghai.md)\n", c.ShanghaiTime)
banner += fmt.Sprintf(" - Shanghai: @%-10v (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/shanghai.md)\n", *c.ShanghaiTime)
}
if c.CancunTime != nil {
banner += fmt.Sprintf(" - Cancun: @%-10v\n", c.CancunTime)
banner += fmt.Sprintf(" - Cancun: @%-10v\n", *c.CancunTime)
}
if c.PragueTime != nil {
banner += fmt.Sprintf(" - Prague: @%-10v\n", c.PragueTime)
banner += fmt.Sprintf(" - Prague: @%-10v\n", *c.PragueTime)
}
return banner
}
Expand Down

0 comments on commit 14dbb77

Please sign in to comment.