Skip to content

Commit

Permalink
[op-conductor] make safe check interval optional (ethereum-optimism#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
0x00101010 authored Apr 29, 2024
1 parent f72faa9 commit a7ff230
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion op-conductor/flags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ var (
Name: "healthcheck.safe-interval",
Usage: "Interval between safe head progression measured in seconds",
EnvVars: opservice.PrefixEnvVar(EnvVarPrefix, "HEALTHCHECK_SAFE_INTERVAL"),
Value: 1200,
}
HealthCheckMinPeerCount = &cli.Uint64Flag{
Name: "healthcheck.min-peer-count",
Expand Down Expand Up @@ -103,7 +104,6 @@ var requiredFlags = []cli.Flag{
ExecutionRPC,
HealthCheckInterval,
HealthCheckUnsafeInterval,
HealthCheckSafeInterval,
HealthCheckMinPeerCount,
}

Expand All @@ -112,6 +112,7 @@ var optionalFlags = []cli.Flag{
RPCEnableProxy,
RaftBootstrap,
HealthCheckSafeEnabled,
HealthCheckSafeInterval,
}

func init() {
Expand Down
1 change: 1 addition & 0 deletions op-conductor/health/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ func (hm *SequencerHealthMonitor) healthCheck() error {
return ErrSequencerNotHealthy
}

hm.log.Info("sequencer is healthy")
return nil
}

Expand Down

0 comments on commit a7ff230

Please sign in to comment.