mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-06 13:11:17 +00:00
params: return AmsterdamTime from ChainConfig.Timestamp (#35293)
## Summary - Add the missing `forks.Amsterdam` case to `ChainConfig.Timestamp`. - Callers can now look up the Amsterdam fork activation time. ## Test plan - [x] `go test -short ./params/`
This commit is contained in:
parent
2919267b64
commit
3620a947ee
1 changed files with 2 additions and 0 deletions
|
|
@ -1231,6 +1231,8 @@ func (c *ChainConfig) Timestamp(fork forks.Fork) *uint64 {
|
|||
return c.CancunTime
|
||||
case fork == forks.Shanghai:
|
||||
return c.ShanghaiTime
|
||||
case fork == forks.Amsterdam:
|
||||
return c.AmsterdamTime
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue