From b269470fcfa4ea986741ae7984e8534d1ba7a185 Mon Sep 17 00:00:00 2001 From: Juan Ignacio Rios Date: Tue, 11 Jun 2024 15:08:50 +0200 Subject: [PATCH] faster fast-mode for politest --- runtimes/politest/src/lib.rs | 4 ++-- runtimes/shared-configuration/src/funding.rs | 14 +++++++------- runtimes/shared-configuration/src/lib.rs | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/runtimes/politest/src/lib.rs b/runtimes/politest/src/lib.rs index e3f964fd7..bf756ff19 100644 --- a/runtimes/politest/src/lib.rs +++ b/runtimes/politest/src/lib.rs @@ -169,7 +169,7 @@ pub mod migrations { use crate::Runtime; /// Unreleased migrations. Add new ones here: - pub type Unreleased = pallet_funding::storage_migrations::v3::MigrationToV3; + pub type Unreleased = (); } /// Executive: handles dispatch to the various modules. @@ -215,7 +215,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("politest"), impl_name: create_runtime_str!("politest"), authoring_version: 1, - spec_version: 0_007_005, + spec_version: 0_007_006, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 2, diff --git a/runtimes/shared-configuration/src/funding.rs b/runtimes/shared-configuration/src/funding.rs index 70a0cb8db..7c06ad3b3 100644 --- a/runtimes/shared-configuration/src/funding.rs +++ b/runtimes/shared-configuration/src/funding.rs @@ -28,42 +28,42 @@ use parachains_common::HOURS; #[cfg(feature = "instant-mode")] pub const EVALUATION_DURATION: BlockNumber = 3; #[cfg(feature = "fast-mode")] -pub const EVALUATION_DURATION: BlockNumber = 3 * HOURS; +pub const EVALUATION_DURATION: BlockNumber = 10 * crate::MINUTES; #[cfg(not(any(feature = "fast-mode", feature = "instant-mode")))] pub const EVALUATION_DURATION: BlockNumber = 28 * crate::DAYS; #[cfg(feature = "instant-mode")] pub const AUCTION_INITIALIZE_PERIOD_DURATION: BlockNumber = 3; #[cfg(feature = "fast-mode")] -pub const AUCTION_INITIALIZE_PERIOD_DURATION: BlockNumber = 1 * HOURS; +pub const AUCTION_INITIALIZE_PERIOD_DURATION: BlockNumber = 10 * crate::MINUTES; #[cfg(not(any(feature = "fast-mode", feature = "instant-mode")))] pub const AUCTION_INITIALIZE_PERIOD_DURATION: BlockNumber = 7 * crate::DAYS; #[cfg(feature = "instant-mode")] pub const AUCTION_OPENING_DURATION: BlockNumber = 2; #[cfg(feature = "fast-mode")] -pub const AUCTION_OPENING_DURATION: BlockNumber = 1 * HOURS; +pub const AUCTION_OPENING_DURATION: BlockNumber = 7 * crate::MINUTES; #[cfg(not(any(feature = "fast-mode", feature = "instant-mode")))] pub const AUCTION_OPENING_DURATION: BlockNumber = 2 * crate::DAYS; #[cfg(feature = "instant-mode")] pub const AUCTION_CLOSING_DURATION: BlockNumber = 2; #[cfg(feature = "fast-mode")] -pub const AUCTION_CLOSING_DURATION: BlockNumber = 1 * HOURS; +pub const AUCTION_CLOSING_DURATION: BlockNumber = 7 * crate::MINUTES; #[cfg(not(any(feature = "fast-mode", feature = "instant-mode")))] pub const AUCTION_CLOSING_DURATION: BlockNumber = 3 * crate::DAYS; #[cfg(feature = "instant-mode")] pub const COMMUNITY_FUNDING_DURATION: BlockNumber = 3; #[cfg(feature = "fast-mode")] -pub const COMMUNITY_FUNDING_DURATION: BlockNumber = 1 * HOURS; +pub const COMMUNITY_FUNDING_DURATION: BlockNumber = 15 * crate::MINUTES; #[cfg(not(any(feature = "fast-mode", feature = "instant-mode")))] pub const COMMUNITY_FUNDING_DURATION: BlockNumber = 5 * crate::DAYS; #[cfg(feature = "instant-mode")] pub const REMAINDER_FUNDING_DURATION: BlockNumber = 3; #[cfg(feature = "fast-mode")] -pub const REMAINDER_FUNDING_DURATION: BlockNumber = 1 * HOURS; +pub const REMAINDER_FUNDING_DURATION: BlockNumber = 15 * crate::MINUTES; #[cfg(not(any(feature = "fast-mode", feature = "instant-mode")))] pub const REMAINDER_FUNDING_DURATION: BlockNumber = crate::DAYS; @@ -84,7 +84,7 @@ pub const MANUAL_ACCEPTANCE_DURATION: BlockNumber = 3 * crate::DAYS; #[cfg(feature = "instant-mode")] pub const SUCCESS_TO_SETTLEMENT_TIME: BlockNumber = 4; #[cfg(feature = "fast-mode")] -pub const SUCCESS_TO_SETTLEMENT_TIME: BlockNumber = 1 * HOURS; +pub const SUCCESS_TO_SETTLEMENT_TIME: BlockNumber = 5 * crate::MINUTES; #[cfg(not(any(feature = "fast-mode", feature = "instant-mode")))] pub const SUCCESS_TO_SETTLEMENT_TIME: BlockNumber = 4 * crate::DAYS; diff --git a/runtimes/shared-configuration/src/lib.rs b/runtimes/shared-configuration/src/lib.rs index 4cdc41c89..fd57b0221 100644 --- a/runtimes/shared-configuration/src/lib.rs +++ b/runtimes/shared-configuration/src/lib.rs @@ -28,7 +28,7 @@ pub mod time; pub mod weights; /// Common types -pub use parachains_common::{Balance, BlockNumber, DAYS}; +pub use parachains_common::{Balance, BlockNumber, DAYS, HOURS, MINUTES}; pub use assets::*; pub use currency::*;