Skip to content

Commit

Permalink
feature(op-node): simplify op-node start (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
redhdx committed Apr 25, 2024
1 parent 426eea2 commit 79487d1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions op-node/flags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ var (
Name: "l1.http-poll-interval",
Usage: "Polling interval for latest-block subscription when using an HTTP RPC provider. Ignored for other types of RPC endpoints.",
EnvVars: prefixEnvVars("L1_HTTP_POLL_INTERVAL"),
Value: time.Second * 12,
Value: time.Second * 3,
}
L2EngineJWTSecret = &cli.StringFlag{
Name: "l2.jwt-secret",
Expand All @@ -120,7 +120,7 @@ var (
Usage: "Number of L1 blocks to keep distance from the L1 head before deriving L2 data from. Reorgs are supported, but may be slow to perform.",
EnvVars: prefixEnvVars("VERIFIER_L1_CONFS"),
Required: false,
Value: 0,
Value: 15,
}
SequencerEnabledFlag = &cli.BoolFlag{
Name: "sequencer.enabled",
Expand Down Expand Up @@ -149,14 +149,14 @@ var (
Usage: "Number of L1 blocks to keep distance from the L1 head as a sequencer for picking an L1 origin.",
EnvVars: prefixEnvVars("SEQUENCER_L1_CONFS"),
Required: false,
Value: 4,
Value: 15,
}
L1EpochPollIntervalFlag = &cli.DurationFlag{
Name: "l1.epoch-poll-interval",
Usage: "Poll interval for retrieving new L1 epoch updates such as safe and finalized block changes. Disabled if 0 or negative.",
EnvVars: prefixEnvVars("L1_EPOCH_POLL_INTERVAL"),
Required: false,
Value: time.Second * 12 * 32,
Value: time.Second * 3 * 15,
}
RuntimeConfigReloadIntervalFlag = &cli.DurationFlag{
Name: "l1.runtime-config-reload-interval",
Expand Down Expand Up @@ -238,15 +238,15 @@ var (
Usage: "Enables or disables execution engine P2P sync",
EnvVars: prefixEnvVars("L2_ENGINE_SYNC_ENABLED"),
Required: false,
Value: false,
Value: true,
}
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"),
Required: false,
Value: false,
Value: true,
}
BetaExtraNetworks = &cli.BoolFlag{
Name: "beta.extra-networks",
Expand Down
4 changes: 2 additions & 2 deletions op-node/flags/p2p_flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,14 @@ func P2PFlags(envPrefix string) []cli.Flag {
Name: ListenTCPPortName,
Usage: "TCP port to bind LibP2P to. Any available system port if set to 0.",
Required: false,
Value: 9222,
Value: 9003,
EnvVars: p2pEnv(envPrefix, "LISTEN_TCP_PORT"),
},
&cli.UintFlag{
Name: ListenUDPPortName,
Usage: "UDP port to bind Discv5 to. Same as TCP port if left 0.",
Required: false,
Value: 0, // can simply match the TCP libp2p port
Value: 9003, // can simply match the TCP libp2p port
EnvVars: p2pEnv(envPrefix, "LISTEN_UDP_PORT"),
},
&cli.StringFlag{
Expand Down

0 comments on commit 79487d1

Please sign in to comment.