From 0ef96b68a732c1e4834d8948084ab7573b5f1dc6 Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Wed, 27 Mar 2024 20:11:01 +0800 Subject: [PATCH] debug --- eth/catalyst/api.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eth/catalyst/api.go b/eth/catalyst/api.go index 0c9ef8f58..2fb1fd396 100644 --- a/eth/catalyst/api.go +++ b/eth/catalyst/api.go @@ -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")) }