This commit is contained in:
Roy Crihfield 2024-03-27 20:11:01 +08:00
parent e8e8d2f81c
commit 0ef96b68a7

View File

@ -223,7 +223,9 @@ 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)
log.Debug("forkchoiceupdatedv3 args", "update", update, "params", params,
"config", api.eth.BlockChain().Config(),
"latest_fork", api.eth.BlockChain().Config().LatestFork(params.Timestamp))
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"))
}