@@ -972,6 +972,16 @@ func (c *ChainConfig) LatestFork(time uint64) forks.Fork {
972
972
london := c .LondonBlock
973
973
974
974
switch {
975
+ case c .IsBPO5 (london , time ):
976
+ return forks .BPO5
977
+ case c .IsBPO4 (london , time ):
978
+ return forks .BPO4
979
+ case c .IsBPO3 (london , time ):
980
+ return forks .BPO3
981
+ case c .IsBPO2 (london , time ):
982
+ return forks .BPO2
983
+ case c .IsBPO1 (london , time ):
984
+ return forks .BPO1
975
985
case c .IsOsaka (london , time ):
976
986
return forks .Osaka
977
987
case c .IsPrague (london , time ):
@@ -988,12 +998,22 @@ func (c *ChainConfig) LatestFork(time uint64) forks.Fork {
988
998
// BlobConfig returns the blob config associated with the provided fork.
989
999
func (c * ChainConfig ) BlobConfig (fork forks.Fork ) * BlobConfig {
990
1000
switch fork {
1001
+ case forks .BPO5 :
1002
+ return c .BlobScheduleConfig .BPO5
1003
+ case forks .BPO4 :
1004
+ return c .BlobScheduleConfig .BPO4
1005
+ case forks .BPO3 :
1006
+ return c .BlobScheduleConfig .BPO3
1007
+ case forks .BPO2 :
1008
+ return c .BlobScheduleConfig .BPO2
1009
+ case forks .BPO1 :
1010
+ return c .BlobScheduleConfig .BPO1
991
1011
case forks .Osaka :
992
- return DefaultOsakaBlobConfig
1012
+ return c . BlobScheduleConfig . Osaka
993
1013
case forks .Prague :
994
- return DefaultPragueBlobConfig
1014
+ return c . BlobScheduleConfig . Prague
995
1015
case forks .Cancun :
996
- return DefaultCancunBlobConfig
1016
+ return c . BlobScheduleConfig . Cancun
997
1017
default :
998
1018
return nil
999
1019
}
@@ -1023,6 +1043,16 @@ func (c *ChainConfig) ActiveSystemContracts(time uint64) map[string]common.Addre
1023
1043
// the fork isn't defined or isn't a time-based fork.
1024
1044
func (c * ChainConfig ) Timestamp (fork forks.Fork ) * uint64 {
1025
1045
switch {
1046
+ case fork == forks .BPO5 :
1047
+ return c .BPO5Time
1048
+ case fork == forks .BPO4 :
1049
+ return c .BPO4Time
1050
+ case fork == forks .BPO3 :
1051
+ return c .BPO3Time
1052
+ case fork == forks .BPO2 :
1053
+ return c .BPO2Time
1054
+ case fork == forks .BPO1 :
1055
+ return c .BPO1Time
1026
1056
case fork == forks .Osaka :
1027
1057
return c .OsakaTime
1028
1058
case fork == forks .Prague :
0 commit comments