Commit fad6a6a4 authored by mergify[bot]'s avatar mergify[bot] Committed by GitHub

Merge pull request #4134 from ethereum-optimism/fix/safety-basefee

op-chain-ops: base fee check
parents 7cf0fb76 5ec570fa
...@@ -2,6 +2,7 @@ package genesis ...@@ -2,6 +2,7 @@ package genesis
import ( import (
"bytes" "bytes"
"errors"
"fmt" "fmt"
"math/big" "math/big"
...@@ -53,6 +54,10 @@ func MigrateDB(ldb ethdb.Database, config *DeployConfig, l1Block *types.Block, m ...@@ -53,6 +54,10 @@ func MigrateDB(ldb ethdb.Database, config *DeployConfig, l1Block *types.Block, m
}, nil }, nil
} }
if config.L2GenesisBlockBaseFeePerGas == nil {
return nil, errors.New("must configure L2 genesis block base fee per gas")
}
underlyingDB := state.NewDatabaseWithConfig(ldb, &trie.Config{ underlyingDB := state.NewDatabaseWithConfig(ldb, &trie.Config{
Preimages: true, Preimages: true,
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment