Skip to content

Commit

Permalink
Mark the chain 'finalized' on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
joroshiba committed Nov 12, 2023
1 parent b59a5a6 commit cbddc9a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions grpc/execution/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ type ExecutionServiceServerV1Alpha2 struct {
func NewExecutionServiceServerV1Alpha2(eth *eth.Ethereum) *ExecutionServiceServerV1Alpha2 {
bc := eth.BlockChain()

if merger := eth.Merger(); !merger.PoSFinalized() {
merger.FinalizePoS()
}

return &ExecutionServiceServerV1Alpha2{
eth: eth,
bc: bc,
Expand Down

0 comments on commit cbddc9a

Please sign in to comment.