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
df98e902
Unverified
Commit
df98e902
authored
Mar 03, 2024
by
Adrian Sutton
Committed by
GitHub
Mar 02, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use NewConfig to ensure defaults are set correctly. (#9714)
parent
4a3a18d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
12 deletions
+5
-12
verify.go
op-program/verify/verify.go
+5
-12
No files found.
op-program/verify/verify.go
View file @
df98e902
...
...
@@ -128,17 +128,10 @@ func Run(l1RpcUrl string, l1RpcKind string, l1BeaconUrl string, l2RpcUrl string,
if
err
!=
nil
{
return
fmt
.
Errorf
(
"failed to load rollup config: %w"
,
err
)
}
offlineCfg
:=
config
.
Config
{
Rollup
:
rollupCfg
,
DataDir
:
dataDir
,
L2ChainConfig
:
chainCfg
,
L2Head
:
l2Head
,
L2OutputRoot
:
agreedOutput
.
OutputRoot
,
L2Claim
:
l2Claim
,
L2ClaimBlockNumber
:
l2BlockNumber
.
Uint64
(),
L1Head
:
l1Head
,
}
onlineCfg
:=
offlineCfg
offlineCfg
:=
config
.
NewConfig
(
rollupCfg
,
chainCfg
,
l1Head
,
l2Head
,
agreedOutput
.
OutputRoot
,
l2Claim
,
l2BlockNumber
.
Uint64
())
offlineCfg
.
DataDir
=
dataDir
onlineCfg
:=
*
offlineCfg
onlineCfg
.
L1URL
=
l1RpcUrl
onlineCfg
.
L1BeaconURL
=
l1BeaconUrl
onlineCfg
.
L2URL
=
l2RpcUrl
...
...
@@ -153,7 +146,7 @@ func Run(l1RpcUrl string, l1RpcKind string, l1BeaconUrl string, l2RpcUrl string,
}
fmt
.
Println
(
"Running in offline mode"
)
err
=
host
.
Main
(
oplog
.
NewLogger
(
os
.
Stderr
,
logger
),
&
offlineCfg
)
err
=
host
.
Main
(
oplog
.
NewLogger
(
os
.
Stderr
,
logger
),
offlineCfg
)
if
err
!=
nil
{
return
fmt
.
Errorf
(
"offline mode failed: %w"
,
err
)
}
...
...
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