mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Mark the chain 'finalized' on startup
This commit is contained in:
parent
b59a5a629e
commit
cbddc9aa12
1 changed files with 4 additions and 0 deletions
|
|
@ -151,6 +151,10 @@ type ExecutionServiceServerV1Alpha2 struct {
|
||||||
func NewExecutionServiceServerV1Alpha2(eth *eth.Ethereum) *ExecutionServiceServerV1Alpha2 {
|
func NewExecutionServiceServerV1Alpha2(eth *eth.Ethereum) *ExecutionServiceServerV1Alpha2 {
|
||||||
bc := eth.BlockChain()
|
bc := eth.BlockChain()
|
||||||
|
|
||||||
|
if merger := eth.Merger(); !merger.PoSFinalized() {
|
||||||
|
merger.FinalizePoS()
|
||||||
|
}
|
||||||
|
|
||||||
return &ExecutionServiceServerV1Alpha2{
|
return &ExecutionServiceServerV1Alpha2{
|
||||||
eth: eth,
|
eth: eth,
|
||||||
bc: bc,
|
bc: bc,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue