Skip to content

Commit

Permalink
faster fast-mode for politest
Browse files Browse the repository at this point in the history
  • Loading branch information
JuaniRios committed Jun 11, 2024
1 parent cb1b6e4 commit b269470
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions runtimes/politest/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Runtime>;
pub type Unreleased = ();
}

/// Executive: handles dispatch to the various modules.
Expand Down Expand Up @@ -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,
Expand Down
14 changes: 7 additions & 7 deletions runtimes/shared-configuration/src/funding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion runtimes/shared-configuration/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::*;
Expand Down

0 comments on commit b269470

Please sign in to comment.