params: fix timestamp display in fork banner (#26553)

pull/26563/head
Felix Lange 2 years ago committed by GitHub
parent 2fecac6041
commit 34115c8f63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      params/config.go

@ -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
}

Loading…
Cancel
Save