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
1c2b5176
Unverified
Commit
1c2b5176
authored
May 30, 2024
by
refcell
Committed by
GitHub
May 30, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(op-dispute-mon): require rollup rpc flag (#10590)
parent
b40933ec
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
flags.go
op-dispute-mon/flags/flags.go
+10
-10
No files found.
op-dispute-mon/flags/flags.go
View file @
1c2b5176
...
@@ -28,22 +28,22 @@ var (
...
@@ -28,22 +28,22 @@ var (
Usage
:
"HTTP provider URL for L1."
,
Usage
:
"HTTP provider URL for L1."
,
EnvVars
:
prefixEnvVars
(
"L1_ETH_RPC"
),
EnvVars
:
prefixEnvVars
(
"L1_ETH_RPC"
),
}
}
FactoryAddressFlag
=
&
cli
.
StringFlag
{
Game
FactoryAddressFlag
=
&
cli
.
StringFlag
{
Name
:
"game-factory-address"
,
Name
:
"game-factory-address"
,
Usage
:
"Address of the fault game factory contract."
,
Usage
:
"Address of the fault game factory contract."
,
EnvVars
:
prefixEnvVars
(
"GAME_FACTORY_ADDRESS"
),
EnvVars
:
prefixEnvVars
(
"GAME_FACTORY_ADDRESS"
),
}
}
RollupRpcFlag
=
&
cli
.
StringFlag
{
Name
:
"rollup-rpc"
,
Usage
:
"HTTP provider URL for the rollup node"
,
EnvVars
:
prefixEnvVars
(
"ROLLUP_RPC"
),
}
// Optional Flags
// Optional Flags
HonestActorsFlag
=
&
cli
.
StringSliceFlag
{
HonestActorsFlag
=
&
cli
.
StringSliceFlag
{
Name
:
"honest-actors"
,
Name
:
"honest-actors"
,
Usage
:
"List of honest actors that are monitored for any claims that are resolved against them."
,
Usage
:
"List of honest actors that are monitored for any claims that are resolved against them."
,
EnvVars
:
prefixEnvVars
(
"HONEST_ACTORS"
),
EnvVars
:
prefixEnvVars
(
"HONEST_ACTORS"
),
}
}
RollupRpcFlag
=
&
cli
.
StringFlag
{
Name
:
"rollup-rpc"
,
Usage
:
"HTTP provider URL for the rollup node"
,
EnvVars
:
prefixEnvVars
(
"ROLLUP_RPC"
),
}
MonitorIntervalFlag
=
&
cli
.
DurationFlag
{
MonitorIntervalFlag
=
&
cli
.
DurationFlag
{
Name
:
"monitor-interval"
,
Name
:
"monitor-interval"
,
Usage
:
"The interval at which the dispute monitor will check for new games to monitor."
,
Usage
:
"The interval at which the dispute monitor will check for new games to monitor."
,
...
@@ -73,12 +73,12 @@ var (
...
@@ -73,12 +73,12 @@ var (
// requiredFlags are checked by [CheckRequired]
// requiredFlags are checked by [CheckRequired]
var
requiredFlags
=
[]
cli
.
Flag
{
var
requiredFlags
=
[]
cli
.
Flag
{
L1EthRpcFlag
,
L1EthRpcFlag
,
FactoryAddressFlag
,
GameFactoryAddressFlag
,
RollupRpcFlag
,
}
}
// optionalFlags is a list of unchecked cli flags
// optionalFlags is a list of unchecked cli flags
var
optionalFlags
=
[]
cli
.
Flag
{
var
optionalFlags
=
[]
cli
.
Flag
{
RollupRpcFlag
,
HonestActorsFlag
,
HonestActorsFlag
,
MonitorIntervalFlag
,
MonitorIntervalFlag
,
GameWindowFlag
,
GameWindowFlag
,
...
@@ -111,7 +111,7 @@ func NewConfigFromCLI(ctx *cli.Context) (*config.Config, error) {
...
@@ -111,7 +111,7 @@ func NewConfigFromCLI(ctx *cli.Context) (*config.Config, error) {
if
err
:=
CheckRequired
(
ctx
);
err
!=
nil
{
if
err
:=
CheckRequired
(
ctx
);
err
!=
nil
{
return
nil
,
err
return
nil
,
err
}
}
gameFactoryAddress
,
err
:=
opservice
.
ParseAddress
(
ctx
.
String
(
FactoryAddressFlag
.
Name
))
gameFactoryAddress
,
err
:=
opservice
.
ParseAddress
(
ctx
.
String
(
Game
FactoryAddressFlag
.
Name
))
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err
return
nil
,
err
}
}
...
@@ -144,9 +144,9 @@ func NewConfigFromCLI(ctx *cli.Context) (*config.Config, error) {
...
@@ -144,9 +144,9 @@ func NewConfigFromCLI(ctx *cli.Context) (*config.Config, error) {
return
&
config
.
Config
{
return
&
config
.
Config
{
L1EthRpc
:
ctx
.
String
(
L1EthRpcFlag
.
Name
),
L1EthRpc
:
ctx
.
String
(
L1EthRpcFlag
.
Name
),
GameFactoryAddress
:
gameFactoryAddress
,
GameFactoryAddress
:
gameFactoryAddress
,
RollupRpc
:
ctx
.
String
(
RollupRpcFlag
.
Name
),
HonestActors
:
actors
,
HonestActors
:
actors
,
RollupRpc
:
ctx
.
String
(
RollupRpcFlag
.
Name
),
MonitorInterval
:
ctx
.
Duration
(
MonitorIntervalFlag
.
Name
),
MonitorInterval
:
ctx
.
Duration
(
MonitorIntervalFlag
.
Name
),
GameWindow
:
ctx
.
Duration
(
GameWindowFlag
.
Name
),
GameWindow
:
ctx
.
Duration
(
GameWindowFlag
.
Name
),
IgnoredGames
:
ignoredGames
,
IgnoredGames
:
ignoredGames
,
...
...
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