From 8591d0bc19e0fd869b48632ba9dcacd01d0bd27c Mon Sep 17 00:00:00 2001 From: Marius van der Wijden Date: Fri, 22 Mar 2024 16:55:06 +0100 Subject: [PATCH] eth/catalyst: fix api --- eth/catalyst/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/catalyst/api.go b/eth/catalyst/api.go index 4a01becd7a..0ce1a26d03 100644 --- a/eth/catalyst/api.go +++ b/eth/catalyst/api.go @@ -226,7 +226,7 @@ func (api *ConsensusAPI) ForkchoiceUpdatedV3(update engine.ForkchoiceStateV1, pa if params.BeaconRoot == nil { return engine.STATUS_INVALID, engine.InvalidPayloadAttributes.With(errors.New("missing beacon root")) } - if api.eth.BlockChain().Config().LatestFork(params.Timestamp) != forks.Cancun { + if latest := api.eth.BlockChain().Config().LatestFork(params.Timestamp); latest != forks.Cancun && latest != forks.Prague { return engine.STATUS_INVALID, engine.UnsupportedFork.With(errors.New("forkchoiceUpdatedV3 must only be called for cancun payloads")) } }