This commit is contained in:
Roy Crihfield 2024-03-27 19:57:55 +08:00
parent 398aea0fa4
commit e8e8d2f81c

View File

@ -223,6 +223,7 @@ func (api *ConsensusAPI) ForkchoiceUpdatedV3(update engine.ForkchoiceStateV1, pa
if params.BeaconRoot == nil {
return engine.STATUS_INVALID, engine.InvalidParams.With(errors.New("missing beacon root"))
}
log.Debug("forkchoiceupdatedv3 args", "update", update, "params", params)
if api.eth.BlockChain().Config().LatestFork(params.Timestamp) != forks.Cancun {
return engine.STATUS_INVALID, engine.UnsupportedFork.With(errors.New("forkchoiceUpdatedV3 must only be called for cancun payloads"))
}