mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 13:07:17 +00:00
fix transition warning (#3687)
This commit is contained in:
parent
6823dc21c4
commit
72d9947479
@ -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)
|
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{
|
return TransitionConfiguration{
|
||||||
TerminalTotalDifficulty: (*hexutil.Big)(terminalTotalDifficulty),
|
TerminalTotalDifficulty: (*hexutil.Big)(terminalTotalDifficulty),
|
||||||
TerminalBlockHash: chainConfig.TerminalBlockHash,
|
TerminalBlockHash: chainConfig.TerminalBlockHash,
|
||||||
|
Loading…
Reference in New Issue
Block a user