Skip to content

Commit

Permalink
fix: decrease minimums for genesis parameters (#13106)
Browse files Browse the repository at this point in the history
* Update genesis.go

* Update genesis.go
  • Loading branch information
shaspitz authored and sainoe committed Nov 2, 2022
1 parent 85dbf4c commit f317bd0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions x/slashing/types/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ func ValidateGenesis(data GenesisState) error {
}

downtimeJail := data.Params.DowntimeJailDuration
if downtimeJail < 1*time.Minute {
return fmt.Errorf("downtime unjail duration must be at least 1 minute, is %s", downtimeJail.String())
if downtimeJail < 2*time.Second {
return fmt.Errorf("downtime unjail duration must be at least 2 seconds, is %s", downtimeJail.String())
}

signedWindow := data.Params.SignedBlocksWindow
if signedWindow < 10 {
return fmt.Errorf("signed blocks window must be at least 10, is %d", signedWindow)
if signedWindow < 2 {
return fmt.Errorf("signed blocks window must be at least 2, is %d", signedWindow)
}

return nil
Expand Down

0 comments on commit f317bd0

Please sign in to comment.