From 72d9947479741e0a56615e26250a8a62e795bc2e Mon Sep 17 00:00:00 2001 From: Giulio rebuffo Date: Sun, 13 Mar 2022 10:24:17 +0100 Subject: [PATCH] fix transition warning (#3687) --- cmd/rpcdaemon/commands/engine_api.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmd/rpcdaemon/commands/engine_api.go b/cmd/rpcdaemon/commands/engine_api.go index d7e439ac8..35fb92085 100644 --- a/cmd/rpcdaemon/commands/engine_api.go +++ b/cmd/rpcdaemon/commands/engine_api.go @@ -239,6 +239,14 @@ func (e *EngineImpl) ExchangeTransitionConfigurationV1(ctx context.Context, beac return TransitionConfiguration{}, fmt.Errorf("the execution layer has the wrong block hash. expected %s, but instead got: %s", beaconConfig.TerminalBlockHash, chainConfig.TerminalBlockHash) } + if chainConfig.TerminalBlockNumber == nil { + return TransitionConfiguration{ + TerminalTotalDifficulty: (*hexutil.Big)(terminalTotalDifficulty), + TerminalBlockHash: chainConfig.TerminalBlockHash, + TerminalBlockNumber: (*hexutil.Big)(common.Big0), + }, nil + } + return TransitionConfiguration{ TerminalTotalDifficulty: (*hexutil.Big)(terminalTotalDifficulty), TerminalBlockHash: chainConfig.TerminalBlockHash,