Skip to content

Commit

Permalink
Merge pull request #34 from astriaorg/joroshiba/always-finalized
Browse files Browse the repository at this point in the history
Mark the chain 'finalized' on startup
  • Loading branch information
joroshiba committed Nov 12, 2023
2 parents b59a5a6 + cbddc9a commit 7103839
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 7103839

Please sign in to comment.