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:
cui 2026-07-06 17:27:34 +08:00 committed by GitHub
parent 2919267b64
commit 3620a947ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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