Skip to content

Commit

Permalink
Update cmd/thor/main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
otherview committed Dec 9, 2024
1 parent 93a222a commit 05e7dbf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/thor/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 := ""
Expand Down

0 comments on commit 05e7dbf

Please sign in to comment.