mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-21 20:26:41 +00:00
params: return AmsterdamTime from ChainConfig.Timestamp
The Amsterdam fork was missing from the Timestamp switch, so callers could not look up its activation time via forks.Amsterdam.
This commit is contained in:
parent
7aa7806c09
commit
8fd26135b6
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