Mark the chain 'finalized' on startup

This commit is contained in:
Jordan Oroshiba 2023-11-12 13:58:04 +03:00
parent b59a5a629e
commit cbddc9aa12

View file

@ -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,