Skip to content

Commit

Permalink
removing condition for LoopIntervalMsec that causes issues (#49)
Browse files Browse the repository at this point in the history
* removing condition for LoopIntervalMsec that causes issues

* fix: Get the `LoopIntervalMsecFlagName` from the monitorism from the `--loop.interval.msec 12000` to ensure this is consitent with the rest.

* revert: previous commit

---------

Co-authored-by: ethnical <[email protected]>
  • Loading branch information
raffaele-oplabs and Ethnical authored Aug 14, 2024
1 parent 0e27da4 commit 54f0c69
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions op-monitorism/withdrawals/cli.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package withdrawals

import (
"errors"
"fmt"

"github.com/ethereum/go-ethereum/common"
Expand Down Expand Up @@ -40,10 +39,6 @@ func ReadCLIFlags(ctx *cli.Context) (CLIConfig, error) {
StartingL1BlockHeight: ctx.Uint64(StartingL1BlockHeightFlagName),
}

if cfg.LoopIntervalMsec == 0 {
return cfg, errors.New("no loop interval configured")
}

portalAddress := ctx.String(OptimismPortalAddressFlagName)
if !common.IsHexAddress(portalAddress) {
return cfg, fmt.Errorf("--%s is not a hex-encoded address", OptimismPortalAddressFlagName)
Expand Down

0 comments on commit 54f0c69

Please sign in to comment.