Skip to content

Commit 4265514

Browse files
eth/catalyst: allow cancun payloads
1 parent 0287666 commit 4265514

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
@@ -231,7 +231,7 @@ func (api *ConsensusAPI) ForkchoiceUpdatedV3(update engine.ForkchoiceStateV1, pa
231231
return engine.STATUS_INVALID, attributesErr("missing withdrawals")
232232
case params.BeaconRoot == nil:
233233
return engine.STATUS_INVALID, attributesErr("missing beacon root")
234-
case !api.checkFork(params.Timestamp, forks.Cancun, forks.Prague):
234+
case !api.checkFork(params.Timestamp, forks.Cancun, forks.Prague, forks.Osaka):
235235
return engine.STATUS_INVALID, unsupportedForkErr("fcuV3 must only be called for cancun or prague payloads")
236236
}
237237
}
@@ -550,7 +550,7 @@ func (api *ConsensusAPI) NewPayloadV4(params engine.ExecutableData, versionedHas
550550
return invalidStatus, paramsErr("nil beaconRoot post-cancun")
551551
case executionRequests == nil:
552552
return invalidStatus, paramsErr("nil executionRequests post-prague")
553-
case !api.checkFork(params.Timestamp, forks.Prague):
553+
case !api.checkFork(params.Timestamp, forks.Prague, forks.Osaka):
554554
return invalidStatus, unsupportedForkErr("newPayloadV3 must only be called for cancun payloads")
555555
}
556556
requests := convertRequests(executionRequests)

0 commit comments

Comments
 (0)