diff --git a/core/genesis.go b/core/genesis.go index f012cb9d55c3..b319d8bebe3b 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -300,6 +300,10 @@ func SetupGenesisBlockWithOverride(db ethdb.Database, triedb *trie.Database, gen if config.IsOptimism() && config.ChainID != nil && config.ChainID.Cmp(params.OptimismGoerliChainId) == 0 { // Apply Optimism Goerli regolith time config.RegolithTime = ¶ms.OptimismGoerliRegolithTime + } + if config.IsOptimism() && config.ChainID != nil && config.ChainID.Cmp(params.BaseGoerliChainId) == 0 { + // Apply Base Goerli regolith time + config.RegolithTime = ¶ms.BaseGoerliRegolithTime } if overrides != nil && overrides.OverrideShanghai != nil { config.ShanghaiTime = overrides.OverrideShanghai diff --git a/params/config.go b/params/config.go index d16a5224e697..10286d304a5d 100644 --- a/params/config.go +++ b/params/config.go @@ -34,11 +34,14 @@ var ( GoerliGenesisHash = common.HexToHash("0xbf7e331f7f7c1dd2e05159666b3bf8bc7a8a3a9eb1d518969eab529dd9b88c1a") ) -// Optimism chain config +// OP Stack chain config var ( OptimismGoerliChainId = big.NewInt(420) // March 17, 2023 @ 7:00:00 pm UTC OptimismGoerliRegolithTime = uint64(1679079600) + BaseGoerliChainId = big.NewInt(84531) + // April 27, 2023 @ 5:00:00 pm UTC + BaseGoerliRegolithTime = uint64(1682614800) ) // TrustedCheckpoints associates each known checkpoint with the genesis hash of