Skip to content

Commit 14d1269

Browse files
eth/catalyst: allow cancun payloads
1 parent 5e98c97 commit 14d1269

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eth/catalyst/api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ func (api *ConsensusAPI) ForkchoiceUpdatedV3(update engine.ForkchoiceStateV1, pa
229229
return engine.STATUS_INVALID, attributesErr("missing withdrawals")
230230
case params.BeaconRoot == nil:
231231
return engine.STATUS_INVALID, attributesErr("missing beacon root")
232-
case !api.checkFork(params.Timestamp, forks.Cancun, forks.Prague):
232+
case !api.checkFork(params.Timestamp, forks.Cancun, forks.Prague, forks.Osaka):
233233
return engine.STATUS_INVALID, unsupportedForkErr("fcuV3 must only be called for cancun or prague payloads")
234234
}
235235
}
@@ -544,7 +544,7 @@ func (api *ConsensusAPI) NewPayloadV4(params engine.ExecutableData, versionedHas
544544
return invalidStatus, paramsErr("nil beaconRoot post-cancun")
545545
case executionRequests == nil:
546546
return invalidStatus, paramsErr("nil executionRequests post-prague")
547-
case !api.checkFork(params.Timestamp, forks.Prague):
547+
case !api.checkFork(params.Timestamp, forks.Prague, forks.Osaka):
548548
return invalidStatus, unsupportedForkErr("newPayloadV3 must only be called for cancun payloads")
549549
}
550550
requests := convertRequests(executionRequests)

0 commit comments

Comments
 (0)