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

Merge pull request #4193 from ethereum-optimism/12-02-Add_additional_l2oo_sanity_check

Add additional l2oo sanity check
parents e92de35b 8e939869
......@@ -60,6 +60,13 @@ func MigrateDB(ldb ethdb.Database, config *DeployConfig, l1Block *types.Block, m
)
}
// Ensure that the starting timestamp is safe
if config.L2OutputOracleStartingTimestamp <= 0 {
return nil, fmt.Errorf(
"L2 output oracle starting timestamp (%d) cannot be <= 0", config.L2OutputOracleStartingTimestamp,
)
}
underlyingDB := state.NewDatabaseWithConfig(ldb, &trie.Config{
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