mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-14 16:03:45 +00:00
eth/catalyst: make headBlock reorging to finalized possible (#35519)
This commit is contained in:
parent
87ab9435f5
commit
8f1a3fee9f
1 changed files with 1 additions and 1 deletions
|
|
@ -333,7 +333,7 @@ func (api *ConsensusAPI) forkchoiceUpdated(ctx context.Context, update engine.Fo
|
|||
// generating the payload. It's a special corner case that a few slots are
|
||||
// missing and we are requested to generate the payload in slot.
|
||||
} else {
|
||||
if finalized := api.eth.BlockChain().CurrentFinalBlock(); finalized != nil && block.NumberU64() <= finalized.Number.Uint64() {
|
||||
if finalized := api.eth.BlockChain().CurrentFinalBlock(); finalized != nil && block.NumberU64() < finalized.Number.Uint64() {
|
||||
log.Info("Skipping beacon update to finalized ancestor", "number", block.NumberU64(), "hash", update.HeadBlockHash)
|
||||
return valid(nil), nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue