From fc28dcec2b08bf7b40ea04a548da66162e30201a Mon Sep 17 00:00:00 2001 From: Shawn Marshall-Spitzbart <44221603+smarshall-spitzbart@users.noreply.github.com> Date: Thu, 1 Sep 2022 11:10:11 -0700 Subject: [PATCH] fix: decrease minimums for genesis parameters (#13106) * Update genesis.go * Update genesis.go --- x/slashing/types/genesis.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/x/slashing/types/genesis.go b/x/slashing/types/genesis.go index b891dec80e8b..d9270a27b8b2 100644 --- a/x/slashing/types/genesis.go +++ b/x/slashing/types/genesis.go @@ -53,13 +53,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