Skip to content

Commit

Permalink
⬆️ Faster fast-mode for politest (#318)
Browse files Browse the repository at this point in the history
## What?
- New Politest release with faster rounds

## Why?
- So Simon can test faster


## Testing?
Did a try-runtime check and it was fine. Built with srtool
  • Loading branch information
JuaniRios authored Jun 12, 2024
1 parent 6a0b341 commit 24f1285
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
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

0 comments on commit 24f1285

Please sign in to comment.