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
b63da656
Commit
b63da656
authored
Oct 26, 2023
by
Joshua Gutow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
op-node: Pull in Canyon Time from superchain registry
parent
fd19665c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
11 deletions
+12
-11
go.mod
go.mod
+2
-2
go.sum
go.sum
+4
-4
genesis.go
op-chain-ops/genesis/genesis.go
+3
-3
flags.go
op-node/flags/flags.go
+1
-1
superchain.go
op-node/rollup/superchain.go
+2
-1
No files found.
go.mod
View file @
b63da656
...
@@ -8,7 +8,7 @@ require (
...
@@ -8,7 +8,7 @@ require (
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0
github.com/ethereum-optimism/go-ethereum-hdwallet v0.1.3
github.com/ethereum-optimism/go-ethereum-hdwallet v0.1.3
github.com/ethereum-optimism/superchain-registry/superchain v0.0.0-202310
18202221-fdba3d104171
github.com/ethereum-optimism/superchain-registry/superchain v0.0.0-202310
26175037-2cff0d130e74
github.com/ethereum/go-ethereum v1.13.1
github.com/ethereum/go-ethereum v1.13.1
github.com/fsnotify/fsnotify v1.7.0
github.com/fsnotify/fsnotify v1.7.0
github.com/go-chi/chi/v5 v5.0.10
github.com/go-chi/chi/v5 v5.0.10
...
@@ -209,7 +209,7 @@ require (
...
@@ -209,7 +209,7 @@ require (
rsc.io/tmplfunc v0.0.3 // indirect
rsc.io/tmplfunc v0.0.3 // indirect
)
)
replace github.com/ethereum/go-ethereum v1.13.1 => github.com/ethereum-optimism/op-geth v1.101303.0-rc.2.0.2023102
4175019-29cd9a353f83
replace github.com/ethereum/go-ethereum v1.13.1 => github.com/ethereum-optimism/op-geth v1.101303.0-rc.2.0.2023102
6180835-94fbbd04522e
//replace github.com/ethereum-optimism/superchain-registry/superchain => ../superchain-registry/superchain
//replace github.com/ethereum-optimism/superchain-registry/superchain => ../superchain-registry/superchain
//replace github.com/ethereum/go-ethereum v1.13.1 => ../go-ethereum
//replace github.com/ethereum/go-ethereum v1.13.1 => ../go-ethereum
go.sum
View file @
b63da656
...
@@ -151,10 +151,10 @@ github.com/elastic/gosigar v0.14.2 h1:Dg80n8cr90OZ7x+bAax/QjoW/XqTI11RmA79ZwIm9/
...
@@ -151,10 +151,10 @@ github.com/elastic/gosigar v0.14.2 h1:Dg80n8cr90OZ7x+bAax/QjoW/XqTI11RmA79ZwIm9/
github.com/elastic/gosigar v0.14.2/go.mod h1:iXRIGg2tLnu7LBdpqzyQfGDEidKCfWcCMS0WKyPWoMs=
github.com/elastic/gosigar v0.14.2/go.mod h1:iXRIGg2tLnu7LBdpqzyQfGDEidKCfWcCMS0WKyPWoMs=
github.com/ethereum-optimism/go-ethereum-hdwallet v0.1.3 h1:RWHKLhCrQThMfch+QJ1Z8veEq5ZO3DfIhZ7xgRP9WTc=
github.com/ethereum-optimism/go-ethereum-hdwallet v0.1.3 h1:RWHKLhCrQThMfch+QJ1Z8veEq5ZO3DfIhZ7xgRP9WTc=
github.com/ethereum-optimism/go-ethereum-hdwallet v0.1.3/go.mod h1:QziizLAiF0KqyLdNJYD7O5cpDlaFMNZzlxYNcWsJUxs=
github.com/ethereum-optimism/go-ethereum-hdwallet v0.1.3/go.mod h1:QziizLAiF0KqyLdNJYD7O5cpDlaFMNZzlxYNcWsJUxs=
github.com/ethereum-optimism/op-geth v1.101303.0-rc.2.0.2023102
4175019-29cd9a353f83 h1:RFKnTUJqbYM8+dueFcGPdOY0ycrOhxp0HQJyy2OYzvc
=
github.com/ethereum-optimism/op-geth v1.101303.0-rc.2.0.2023102
6180835-94fbbd04522e h1:5ucLyIBCwo07ejZOKFY+6QbCqbLgITHWVqkmLoO6604
=
github.com/ethereum-optimism/op-geth v1.101303.0-rc.2.0.2023102
4175019-29cd9a353f83/go.mod h1:hl28ffXoV4maInP7dvhvNgDO79Q5M3MEYrPZZO6u3W8
=
github.com/ethereum-optimism/op-geth v1.101303.0-rc.2.0.2023102
6180835-94fbbd04522e/go.mod h1:m6GrpSyAe1zdFLJlSctgYKSXUdHwj/yfq2WSOc5vs2A
=
github.com/ethereum-optimism/superchain-registry/superchain v0.0.0-202310
18202221-fdba3d104171 h1:MjCUj16JSLZRDnQQ6OOUy6Chfb4dKo7ahFceNi0RKZ8
=
github.com/ethereum-optimism/superchain-registry/superchain v0.0.0-202310
26175037-2cff0d130e74 h1:02gXBD+Cas7xj9rpkke5wD1+vpfYxyF/+31M5tosP9A
=
github.com/ethereum-optimism/superchain-registry/superchain v0.0.0-202310
18202221-fdba3d104171
/go.mod h1:/70H/KqrtKcvWvNGVj6S3rAcLC+kUPr3t2aDmYIS+Xk=
github.com/ethereum-optimism/superchain-registry/superchain v0.0.0-202310
26175037-2cff0d130e74
/go.mod h1:/70H/KqrtKcvWvNGVj6S3rAcLC+kUPr3t2aDmYIS+Xk=
github.com/ethereum/c-kzg-4844 v0.3.1 h1:sR65+68+WdnMKxseNWxSJuAv2tsUrihTpVBTfM/U5Zg=
github.com/ethereum/c-kzg-4844 v0.3.1 h1:sR65+68+WdnMKxseNWxSJuAv2tsUrihTpVBTfM/U5Zg=
github.com/ethereum/c-kzg-4844 v0.3.1/go.mod h1:VewdlzQmpT5QSrVhbBuGoCdFJkpaJlO1aQputP83wc0=
github.com/ethereum/c-kzg-4844 v0.3.1/go.mod h1:VewdlzQmpT5QSrVhbBuGoCdFJkpaJlO1aQputP83wc0=
github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w=
github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w=
...
...
op-chain-ops/genesis/genesis.go
View file @
b63da656
...
@@ -65,9 +65,9 @@ func NewL2Genesis(config *DeployConfig, block *types.Block) (*core.Genesis, erro
...
@@ -65,9 +65,9 @@ func NewL2Genesis(config *DeployConfig, block *types.Block) (*core.Genesis, erro
CanyonTime
:
config
.
CanyonTime
(
block
.
Time
()),
CanyonTime
:
config
.
CanyonTime
(
block
.
Time
()),
ShanghaiTime
:
config
.
CanyonTime
(
block
.
Time
()),
ShanghaiTime
:
config
.
CanyonTime
(
block
.
Time
()),
Optimism
:
&
params
.
OptimismConfig
{
Optimism
:
&
params
.
OptimismConfig
{
EIP1559Denominator
:
eip1559Denom
,
EIP1559Denominator
:
eip1559Denom
,
EIP1559Elasticity
:
eip1559Elasticity
,
EIP1559Elasticity
:
eip1559Elasticity
,
EIP1559Denominator
Post
Canyon
:
eip1559DenomCanyon
,
EIP1559DenominatorCanyon
:
eip1559DenomCanyon
,
},
},
}
}
...
...
op-node/flags/flags.go
View file @
b63da656
...
@@ -256,7 +256,7 @@ var (
...
@@ -256,7 +256,7 @@ var (
CanyonOverrideFlag
=
&
cli
.
Uint64Flag
{
CanyonOverrideFlag
=
&
cli
.
Uint64Flag
{
Name
:
"override.canyon"
,
Name
:
"override.canyon"
,
Usage
:
"Manually specify the Canyon fork timestamp, overriding the bundled setting"
,
Usage
:
"Manually specify the Canyon fork timestamp, overriding the bundled setting"
,
Hidden
:
tru
e
,
Hidden
:
fals
e
,
}
}
)
)
...
...
op-node/rollup/superchain.go
View file @
b63da656
...
@@ -12,7 +12,7 @@ import (
...
@@ -12,7 +12,7 @@ import (
"github.com/ethereum-optimism/superchain-registry/superchain"
"github.com/ethereum-optimism/superchain-registry/superchain"
)
)
var
OPStackSupport
=
params
.
ProtocolVersionV0
{
Build
:
[
8
]
byte
{},
Major
:
3
,
Minor
:
1
,
Patch
:
0
,
PreRelease
:
1
}
.
Encode
()
var
OPStackSupport
=
params
.
ProtocolVersionV0
{
Build
:
[
8
]
byte
{},
Major
:
4
,
Minor
:
0
,
Patch
:
0
,
PreRelease
:
1
}
.
Encode
()
const
(
const
(
opMainnet
=
10
opMainnet
=
10
...
@@ -98,6 +98,7 @@ func LoadOPStackRollupConfig(chainID uint64) (*Config, error) {
...
@@ -98,6 +98,7 @@ func LoadOPStackRollupConfig(chainID uint64) (*Config, error) {
L1ChainID
:
new
(
big
.
Int
)
.
SetUint64
(
superChain
.
Config
.
L1
.
ChainID
),
L1ChainID
:
new
(
big
.
Int
)
.
SetUint64
(
superChain
.
Config
.
L1
.
ChainID
),
L2ChainID
:
new
(
big
.
Int
)
.
SetUint64
(
chConfig
.
ChainID
),
L2ChainID
:
new
(
big
.
Int
)
.
SetUint64
(
chConfig
.
ChainID
),
RegolithTime
:
&
regolithTime
,
RegolithTime
:
&
regolithTime
,
CanyonTime
:
superChain
.
Config
.
CanyonTime
,
BatchInboxAddress
:
common
.
Address
(
chConfig
.
BatchInboxAddr
),
BatchInboxAddress
:
common
.
Address
(
chConfig
.
BatchInboxAddr
),
DepositContractAddress
:
depositContractAddress
,
DepositContractAddress
:
depositContractAddress
,
L1SystemConfigAddress
:
common
.
Address
(
chConfig
.
SystemConfigAddr
),
L1SystemConfigAddress
:
common
.
Address
(
chConfig
.
SystemConfigAddr
),
...
...
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