Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
fad6a6a4
Unverified
Commit
fad6a6a4
authored
Dec 01, 2022
by
mergify[bot]
Committed by
GitHub
Dec 01, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4134 from ethereum-optimism/fix/safety-basefee
op-chain-ops: base fee check
parents
7cf0fb76
5ec570fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
db_migration.go
op-chain-ops/genesis/db_migration.go
+5
-0
No files found.
op-chain-ops/genesis/db_migration.go
View file @
fad6a6a4
...
@@ -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
,
})
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment