Skip to content

Commit 9986270

Browse files
authored
eth/catalyst: extend payloadVersion support to osaka/post-osaka forks (#32800)
This PR updates the `payloadVersion` function in `simulated_beacon.go` to handle additional following forks used during development and testing phases after Osaka. This change ensures that the simulated beacon correctly resolves the payload version for these forks, enabling consistent and valid execution payload handling during local testing or simulation.
1 parent 6f8e28b commit 9986270

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eth/catalyst/simulated_beacon.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ type SimulatedBeacon struct {
100100

101101
func payloadVersion(config *params.ChainConfig, time uint64) engine.PayloadVersion {
102102
switch config.LatestFork(time) {
103-
case forks.Prague, forks.Cancun:
103+
case forks.BPO5, forks.BPO4, forks.BPO3, forks.BPO2, forks.BPO1, forks.Osaka, forks.Prague, forks.Cancun:
104104
return engine.PayloadV3
105105
case forks.Paris, forks.Shanghai:
106106
return engine.PayloadV2

0 commit comments

Comments
 (0)