We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c106ce3 commit 6561c6dCopy full SHA for 6561c6d
eth/catalyst/api.go
@@ -504,6 +504,11 @@ func (api *ConsensusAPI) setHead(newHead common.Hash) error {
504
}
505
headBlock := api.eth.BlockChain().CurrentBlock()
506
if headBlock.Hash() == newHead {
507
+ // Trigger the transition if it's the first `NewHead` event.
508
+ merger := api.merger()
509
+ if !merger.PoSFinalized() {
510
+ merger.FinalizePoS()
511
+ }
512
return nil
513
514
newHeadBlock := api.eth.BlockChain().GetBlockByHash(newHead)
0 commit comments