mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 02:40:45 +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
|
return c.CancunTime
|
||||||
case fork == forks.Shanghai:
|
case fork == forks.Shanghai:
|
||||||
return c.ShanghaiTime
|
return c.ShanghaiTime
|
||||||
|
case fork == forks.Amsterdam:
|
||||||
|
return c.AmsterdamTime
|
||||||
default:
|
default:
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue