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
21991253
Unverified
Commit
21991253
authored
Aug 08, 2023
by
Adrian Sutton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
op-program: Set l1.rpckind in the goerli verification script
parent
89f440c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
goerli.go
op-program/verify/cmd/goerli.go
+8
-4
No files found.
op-program/verify/cmd/goerli.go
View file @
21991253
...
@@ -18,21 +18,25 @@ import (
...
@@ -18,21 +18,25 @@ import (
const
agreedBlockTrailingDistance
=
100
const
agreedBlockTrailingDistance
=
100
func
main
()
{
func
main
()
{
if
len
(
os
.
Args
)
!=
3
{
if
len
(
os
.
Args
)
<
3
{
_
,
_
=
fmt
.
Fprintln
(
os
.
Stderr
,
"Must specify L1 RPC URL and L2 RPC URL as arguments"
)
_
,
_
=
fmt
.
Fprintln
(
os
.
Stderr
,
"Must specify L1 RPC URL and L2 RPC URL as arguments"
)
os
.
Exit
(
2
)
os
.
Exit
(
2
)
}
}
l1RpcUrl
:=
os
.
Args
[
1
]
l1RpcUrl
:=
os
.
Args
[
1
]
l2RpcUrl
:=
os
.
Args
[
2
]
l2RpcUrl
:=
os
.
Args
[
2
]
l1RpcKind
:=
"alchemy"
if
len
(
os
.
Args
)
>
3
{
l1RpcKind
=
os
.
Args
[
3
]
}
goerliOutputAddress
:=
common
.
HexToAddress
(
"0xE6Dfba0953616Bacab0c9A8ecb3a9BBa77FC15c0"
)
goerliOutputAddress
:=
common
.
HexToAddress
(
"0xE6Dfba0953616Bacab0c9A8ecb3a9BBa77FC15c0"
)
err
:=
Run
(
l1RpcUrl
,
l2RpcUrl
,
goerliOutputAddress
)
err
:=
Run
(
l1RpcUrl
,
l
1RpcKind
,
l
2RpcUrl
,
goerliOutputAddress
)
if
err
!=
nil
{
if
err
!=
nil
{
_
,
_
=
fmt
.
Fprintf
(
os
.
Stderr
,
"Failed: %v
\n
"
,
err
.
Error
())
_
,
_
=
fmt
.
Fprintf
(
os
.
Stderr
,
"Failed: %v
\n
"
,
err
.
Error
())
os
.
Exit
(
1
)
os
.
Exit
(
1
)
}
}
}
}
func
Run
(
l1RpcUrl
string
,
l2RpcUrl
string
,
l2OracleAddr
common
.
Address
)
error
{
func
Run
(
l1RpcUrl
string
,
l
1RpcKind
string
,
l
2RpcUrl
string
,
l2OracleAddr
common
.
Address
)
error
{
ctx
:=
context
.
Background
()
ctx
:=
context
.
Background
()
l1RpcClient
,
err
:=
rpc
.
Dial
(
l1RpcUrl
)
l1RpcClient
,
err
:=
rpc
.
Dial
(
l1RpcUrl
)
if
err
!=
nil
{
if
err
!=
nil
{
...
@@ -150,7 +154,7 @@ func Run(l1RpcUrl string, l2RpcUrl string, l2OracleAddr common.Address) error {
...
@@ -150,7 +154,7 @@ func Run(l1RpcUrl string, l2RpcUrl string, l2OracleAddr common.Address) error {
}
}
fmt
.
Printf
(
"Configuration: %s
\n
"
,
args
)
fmt
.
Printf
(
"Configuration: %s
\n
"
,
args
)
fmt
.
Println
(
"Running in online mode"
)
fmt
.
Println
(
"Running in online mode"
)
err
=
runFaultProofProgram
(
ctx
,
append
(
args
,
"--l1"
,
l1RpcUrl
,
"--l2"
,
l2RpcUrl
))
err
=
runFaultProofProgram
(
ctx
,
append
(
args
,
"--l1"
,
l1RpcUrl
,
"--l2"
,
l2RpcUrl
,
"--l1.rpckind"
,
l1RpcKind
))
if
err
!=
nil
{
if
err
!=
nil
{
return
fmt
.
Errorf
(
"online mode failed: %w"
,
err
)
return
fmt
.
Errorf
(
"online 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