diff --git a/cmd/thor/main.go b/cmd/thor/main.go index e80d17d23..8e8d51d46 100644 --- a/cmd/thor/main.go +++ b/cmd/thor/main.go @@ -318,6 +318,9 @@ func soloAction(ctx *cli.Context) error { onDemandBlockProduction := ctx.Bool(onDemandFlag.Name) blockProductionInterval := ctx.Uint64(blockInterval.Name) + if blockProductionInterval == 0 { + return errors.New("block-interval cannot be zero") + } // enable metrics as soon as possible metricsURL := ""