Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⬆️ Faster fast-mode for politest #318

Merged
merged 1 commit into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion runtimes/politest/src/lib.rs
Original file line number Diff line number Diff line change
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