fix transition warning (#3687)

This commit is contained in:
Giulio rebuffo 2022-03-13 10:24:17 +01:00 committed by GitHub
parent 6823dc21c4
commit 72d9947479
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,