From f750138930ecef02d2c9442f9743b5105ce81618 Mon Sep 17 00:00:00 2001 From: Frederik Gartenmeister Date: Fri, 21 Jun 2024 15:00:00 +0200 Subject: [PATCH] Chore: Make min epoch time in dev smaller (#1872) * fix: make dev have smaller epoch time * fix: adapt to have no bounds --- runtime/development/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/development/src/lib.rs b/runtime/development/src/lib.rs index 9ee4508765..cc8d52cc88 100644 --- a/runtime/development/src/lib.rs +++ b/runtime/development/src/lib.rs @@ -1099,11 +1099,11 @@ parameter_types! { }; // Defaults for pool parameters - pub const DefaultMinEpochTime: u64 = 5 * SECONDS_PER_MINUTE; // 5 minutes + pub const DefaultMinEpochTime: u64 = 0; // No minimum epoch time pub const DefaultMaxNAVAge: u64 = 1 * SECONDS_PER_MINUTE; // 1 minute // Runtime-defined constraints for pool parameters - pub const MinEpochTimeLowerBound: u64 = 1; // at least 1 second (i.e. do not allow multiple epochs closed in 1 block) + pub const MinEpochTimeLowerBound: u64 = 0; // Allow closing an epoch in the same block as the creation of a pool and also multiple per block if wanted pub const MinEpochTimeUpperBound: u64 = 30 * SECONDS_PER_DAY; // 1 month pub const MaxNAVAgeUpperBound: u64 = SECONDS_PER_HOUR; // 1 hour