Commit 8d0af85c authored by Sebastian Stammler's avatar Sebastian Stammler Committed by GitHub

op-node/rollup: Add delta time override for oplabs sepolia devnet 0 (#9242)

parent f46c1e29
......@@ -18,14 +18,16 @@ const (
opMainnet = 10
opGoerli = 420
opSepolia = 11155420
labsGoerliDevnet = 997
labsGoerliChaosnet = 888
labsSepoliaDevnet0 = 11155421
baseGoerli = 84531
baseMainnet = 8453
pgnMainnet = 424
pgnSepolia = 58008
zoraGoerli = 999
zoraMainnet = 7777777
labsDevnet = 997
chaosnet = 888
)
// LoadOPStackRollupConfig loads the rollup configuration of the requested chain ID from the superchain-registry.
......@@ -68,12 +70,20 @@ func LoadOPStackRollupConfig(chainID uint64) (*Config, error) {
regolithTime = 1683219600
case opGoerli:
regolithTime = 1679079600
case labsDevnet:
case labsGoerliDevnet:
regolithTime = 1677984480
case chaosnet:
case labsGoerliChaosnet:
regolithTime = 1692156862
}
deltaTime := superChain.Config.DeltaTime
// OP Labs Sepolia devnet 0 activated delta at genesis, slightly earlier than
// Base Sepolia devnet 0 on the same superchain.
switch chainID {
case labsSepoliaDevnet0:
deltaTime = new(uint64)
}
cfg := &Config{
Genesis: Genesis{
L1: eth.BlockID{
......@@ -99,7 +109,7 @@ func LoadOPStackRollupConfig(chainID uint64) (*Config, error) {
L2ChainID: new(big.Int).SetUint64(chConfig.ChainID),
RegolithTime: &regolithTime,
CanyonTime: superChain.Config.CanyonTime,
DeltaTime: superChain.Config.DeltaTime,
DeltaTime: deltaTime,
EcotoneTime: superChain.Config.EcotoneTime,
FjordTime: superChain.Config.FjordTime,
BatchInboxAddress: common.Address(chConfig.BatchInboxAddr),
......@@ -109,7 +119,7 @@ func LoadOPStackRollupConfig(chainID uint64) (*Config, error) {
if superChain.Config.ProtocolVersionsAddr != nil { // Set optional protocol versions address
cfg.ProtocolVersionsAddress = common.Address(*superChain.Config.ProtocolVersionsAddr)
}
if chainID == labsDevnet || chainID == chaosnet {
if chainID == labsGoerliDevnet || chainID == labsGoerliChaosnet {
cfg.ChannelTimeout = 120
cfg.MaxSequencerDrift = 1200
}
......
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