diff --git a/op-monitorism/liveness_expiration/cli.go b/op-monitorism/liveness_expiration/cli.go index 721e05e6..717657c8 100644 --- a/op-monitorism/liveness_expiration/cli.go +++ b/op-monitorism/liveness_expiration/cli.go @@ -1,7 +1,6 @@ package liveness_expiration import ( - "errors" "github.com/ethereum/go-ethereum/common" opservice "github.com/ethereum-optimism/optimism/op-service" @@ -17,13 +16,11 @@ const ( SafeAddressFlagName = "safe.address" LivenessModuleAddressFlagName = "livenessmodule.address" LivenessGuardAddressFlagName = "livenessguard.address" - LoopIntervalMsecFlagName = "loop.interval.msec" ) type CLIConfig struct { L1NodeURL string EventBlockRange uint64 - LoopIntervalMsec uint64 StartingL1BlockHeight uint64 LivenessModuleAddress common.Address @@ -36,16 +33,11 @@ func ReadCLIFlags(ctx *cli.Context) (CLIConfig, error) { L1NodeURL: ctx.String(L1NodeURLFlagName), EventBlockRange: ctx.Uint64(EventBlockRangeFlagName), StartingL1BlockHeight: ctx.Uint64(StartingL1BlockHeightFlagName), - LoopIntervalMsec: ctx.Uint64(LoopIntervalMsecFlagName), SafeAddress: common.HexToAddress(ctx.String(SafeAddressFlagName)), LivenessModuleAddress: common.HexToAddress(ctx.String(LivenessModuleAddressFlagName)), LivenessGuardAddress: common.HexToAddress(ctx.String(LivenessGuardAddressFlagName)), } - if cfg.LoopIntervalMsec == 0 { - return cfg, errors.New("no loop interval configured") - } - return cfg, nil } diff --git a/op-monitorism/liveness_expiration/monitor.go b/op-monitorism/liveness_expiration/monitor.go index 26d0675e..27460324 100644 --- a/op-monitorism/liveness_expiration/monitor.go +++ b/op-monitorism/liveness_expiration/monitor.go @@ -75,7 +75,6 @@ func NewMonitor(ctx context.Context, log log.Logger, m metrics.Factory, cfg CLIC log.Info("", "Safe Address", cfg.SafeAddress) log.Info("", "LivenessModuleAddress", cfg.LivenessModuleAddress) log.Info("", "LivenessGuardAddress", cfg.LivenessGuardAddress) - log.Info("", "Interval", cfg.LoopIntervalMsec) log.Info("", "L1RpcUrl", cfg.L1NodeURL) log.Info("--------------------------- End of Infos -------------------------------------------------------") diff --git a/op-monitorism/withdrawals/cli.go b/op-monitorism/withdrawals/cli.go index 56b89ce4..04303482 100644 --- a/op-monitorism/withdrawals/cli.go +++ b/op-monitorism/withdrawals/cli.go @@ -25,7 +25,6 @@ type CLIConfig struct { L2NodeURL string EventBlockRange uint64 - LoopIntervalMsec uint64 StartingL1BlockHeight uint64 OptimismPortalAddress common.Address