Skip to content

Commit

Permalink
fix: increate minimum limit of randomly generated sig block period (#341
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Woosang Son authored Oct 1, 2021
1 parent 54adf5d commit 81bdb22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/auth/simulation/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ func GenSigVerifyCostSECP256K1(r *rand.Rand) uint64 {
}

func GenValidSigBlockPeriod(r *rand.Rand) uint64 {
// We use valid sig block period greater than 100 for testing
return uint64(simulation.RandIntBetween(r, 100, 1000))
// We use valid sig block period greater than 500 for testing (to include test-sim-multi-seed-long 500 blocks)
return uint64(simulation.RandIntBetween(r, 501, 10000))
}

// RandomizedGenState generates a random GenesisState for auth
Expand Down

0 comments on commit 81bdb22

Please sign in to comment.