fix(x/epochs): avoid invalid epoch duration in simulation (#20030)

This commit is contained in:
mmsqe
2024-04-12 15:51:22 +00:00
committed by GitHub
parent 363a1e870b
commit ce373b65c5
+1 -1
View File
@@ -14,7 +14,7 @@ import (
// GenCommunityTax randomized CommunityTax
func GenDuration(r *rand.Rand) time.Duration {
return time.Hour * time.Duration(r.Intn(168)) // limit 1 week
return time.Hour * time.Duration(r.Intn(168)+1) // between 1 hour to 1 week
}
func RandomizedEpochs(r *rand.Rand) []types.EpochInfo {