Skip to content

Commit

Permalink
fix: fix flags to adapt current opBNB version
Browse files Browse the repository at this point in the history
  • Loading branch information
krish-nr committed Oct 10, 2023
1 parent f05057c commit 85ff5e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions op-node/flags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,20 +208,18 @@ var (
EnvVar: prefixEnvVar("L2_BACKUP_UNSAFE_SYNC_RPC_TRUST_RPC"),
Required: false,
}
L2EngineSyncEnabled = &cli.BoolFlag{
L2EngineSyncEnabled = cli.BoolFlag{
Name: "l2.engine-sync",
Usage: "Enables or disables execution engine P2P sync",
EnvVars: prefixEnvVars("L2_ENGINE_SYNC_ENABLED"),
EnvVar: prefixEnvVar("L2_ENGINE_SYNC_ENABLED"),
Required: false,
Value: false,
}
SkipSyncStartCheck = &cli.BoolFlag{
SkipSyncStartCheck = cli.BoolFlag{
Name: "l2.skip-sync-start-check",
Usage: "Skip sanity check of consistency of L1 origins of the unsafe L2 blocks when determining the sync-starting point. " +
"This defers the L1-origin verification, and is recommended to use in when utilizing l2.engine-sync",
EnvVars: prefixEnvVars("L2_SKIP_SYNC_START_CHECK"),
EnvVar: prefixEnvVar("L2_SKIP_SYNC_START_CHECK"),
Required: false,
Value: false,
}
)

Expand Down
2 changes: 1 addition & 1 deletion op-node/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func NewConfig(ctx *cli.Context, log log.Logger) (*node.Config, error) {
Moniker: ctx.GlobalString(flags.HeartbeatMonikerFlag.Name),
URL: ctx.GlobalString(flags.HeartbeatURLFlag.Name),
},
Sync: *syncConfig,
Sync: *syncConfig,
}
if err := cfg.Check(); err != nil {
return nil, err
Expand Down

0 comments on commit 85ff5e9

Please sign in to comment.