Skip to content

Commit ce373b6

Browse files
authored
fix(x/epochs): avoid invalid epoch duration in simulation (#20030)
1 parent 363a1e8 commit ce373b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

x/epochs/simulation/genesis.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414

1515
// GenCommunityTax randomized CommunityTax
1616
func GenDuration(r *rand.Rand) time.Duration {
17-
return time.Hour * time.Duration(r.Intn(168)) // limit 1 week
17+
return time.Hour * time.Duration(r.Intn(168)+1) // between 1 hour to 1 week
1818
}
1919

2020
func RandomizedEpochs(r *rand.Rand) []types.EpochInfo {

0 commit comments

Comments
 (0)