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
8d0af85c
Unverified
Commit
8d0af85c
authored
Jan 30, 2024
by
Sebastian Stammler
Committed by
GitHub
Jan 30, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
op-node/rollup: Add delta time override for oplabs sepolia devnet 0 (#9242)
parent
f46c1e29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
13 deletions
+23
-13
superchain.go
op-node/rollup/superchain.go
+23
-13
No files found.
op-node/rollup/superchain.go
View file @
8d0af85c
...
@@ -15,17 +15,19 @@ import (
...
@@ -15,17 +15,19 @@ import (
var
OPStackSupport
=
params
.
ProtocolVersionV0
{
Build
:
[
8
]
byte
{},
Major
:
6
,
Minor
:
0
,
Patch
:
0
,
PreRelease
:
1
}
.
Encode
()
var
OPStackSupport
=
params
.
ProtocolVersionV0
{
Build
:
[
8
]
byte
{},
Major
:
6
,
Minor
:
0
,
Patch
:
0
,
PreRelease
:
1
}
.
Encode
()
const
(
const
(
opMainnet
=
10
opMainnet
=
10
opGoerli
=
420
opGoerli
=
420
opSepolia
=
11155420
opSepolia
=
11155420
labsGoerliDevnet
=
997
labsGoerliChaosnet
=
888
labsSepoliaDevnet0
=
11155421
baseGoerli
=
84531
baseGoerli
=
84531
baseMainnet
=
8453
baseMainnet
=
8453
pgnMainnet
=
424
pgnSepolia
=
58008
pgnMainnet
=
424
zoraGoerli
=
999
pgnSepolia
=
58008
zoraMainnet
=
7777777
labsDevnet
=
997
chaosnet
=
888
)
)
// LoadOPStackRollupConfig loads the rollup configuration of the requested chain ID from the superchain-registry.
// LoadOPStackRollupConfig loads the rollup configuration of the requested chain ID from the superchain-registry.
...
@@ -68,12 +70,20 @@ func LoadOPStackRollupConfig(chainID uint64) (*Config, error) {
...
@@ -68,12 +70,20 @@ func LoadOPStackRollupConfig(chainID uint64) (*Config, error) {
regolithTime
=
1683219600
regolithTime
=
1683219600
case
opGoerli
:
case
opGoerli
:
regolithTime
=
1679079600
regolithTime
=
1679079600
case
labsDevnet
:
case
labs
Goerli
Devnet
:
regolithTime
=
1677984480
regolithTime
=
1677984480
case
c
haosnet
:
case
labsGoerliC
haosnet
:
regolithTime
=
1692156862
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
{
cfg
:=
&
Config
{
Genesis
:
Genesis
{
Genesis
:
Genesis
{
L1
:
eth
.
BlockID
{
L1
:
eth
.
BlockID
{
...
@@ -99,7 +109,7 @@ func LoadOPStackRollupConfig(chainID uint64) (*Config, error) {
...
@@ -99,7 +109,7 @@ func LoadOPStackRollupConfig(chainID uint64) (*Config, error) {
L2ChainID
:
new
(
big
.
Int
)
.
SetUint64
(
chConfig
.
ChainID
),
L2ChainID
:
new
(
big
.
Int
)
.
SetUint64
(
chConfig
.
ChainID
),
RegolithTime
:
&
regolithTime
,
RegolithTime
:
&
regolithTime
,
CanyonTime
:
superChain
.
Config
.
CanyonTime
,
CanyonTime
:
superChain
.
Config
.
CanyonTime
,
DeltaTime
:
superChain
.
Config
.
D
eltaTime
,
DeltaTime
:
d
eltaTime
,
EcotoneTime
:
superChain
.
Config
.
EcotoneTime
,
EcotoneTime
:
superChain
.
Config
.
EcotoneTime
,
FjordTime
:
superChain
.
Config
.
FjordTime
,
FjordTime
:
superChain
.
Config
.
FjordTime
,
BatchInboxAddress
:
common
.
Address
(
chConfig
.
BatchInboxAddr
),
BatchInboxAddress
:
common
.
Address
(
chConfig
.
BatchInboxAddr
),
...
@@ -109,7 +119,7 @@ func LoadOPStackRollupConfig(chainID uint64) (*Config, error) {
...
@@ -109,7 +119,7 @@ func LoadOPStackRollupConfig(chainID uint64) (*Config, error) {
if
superChain
.
Config
.
ProtocolVersionsAddr
!=
nil
{
// Set optional protocol versions address
if
superChain
.
Config
.
ProtocolVersionsAddr
!=
nil
{
// Set optional protocol versions address
cfg
.
ProtocolVersionsAddress
=
common
.
Address
(
*
superChain
.
Config
.
ProtocolVersionsAddr
)
cfg
.
ProtocolVersionsAddress
=
common
.
Address
(
*
superChain
.
Config
.
ProtocolVersionsAddr
)
}
}
if
chainID
==
labs
Devnet
||
chainID
==
c
haosnet
{
if
chainID
==
labs
GoerliDevnet
||
chainID
==
labsGoerliC
haosnet
{
cfg
.
ChannelTimeout
=
120
cfg
.
ChannelTimeout
=
120
cfg
.
MaxSequencerDrift
=
1200
cfg
.
MaxSequencerDrift
=
1200
}
}
...
...
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