params: add prague to LatestForks func

This commit is contained in:
lightclient 2024-01-22 09:19:17 -07:00
parent 9a905b5984
commit 626bc71859
No known key found for this signature in database
GPG key ID: 75C916AFEE20183E

View file

@ -757,6 +757,8 @@ func (c *ChainConfig) LatestFork(time uint64) forks.Fork {
london := c.LondonBlock london := c.LondonBlock
switch { switch {
case c.IsPrague(london, time):
return forks.Prague
case c.IsCancun(london, time): case c.IsCancun(london, time):
return forks.Cancun return forks.Cancun
case c.IsShanghai(london, time): case c.IsShanghai(london, time):