Merge PR #4366: Random Fuzzer fix: avoids VotingPeriod=0

This commit is contained in:
Nicolas Pinto 2019-05-17 16:46:43 -07:00 committed by Alexander Bezobchuk
parent cef788042b
commit f0b690ba6e
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ var (
return sdk.Coins{sdk.NewInt64Coin(sdk.DefaultBondDenom, int64(RandIntBetween(r, 1, 1e3)))}
},
"VotingParams/VotingPeriod": func(r *rand.Rand) interface{} {
return time.Duration(r.Intn(2*172800)) * time.Second
return time.Duration(RandIntBetween(r, 1, 2*60*60*24*2)) * time.Second
},
"TallyParams/Quorum": func(r *rand.Rand) interface{} {
return sdk.NewDecWithPrec(334, 3)