Skip to content

Commit

Permalink
conditional compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
asiniscalchi committed Aug 28, 2024
1 parent 0f7f7d1 commit 076ed82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions runtime/laos/src/configs/collective_council.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ use crate::{weights, AccountId, BlockNumber, Runtime, RuntimeCall, RuntimeEvent,
use frame_support::{pallet_prelude::Weight, parameter_types};
use frame_system::EnsureRoot;
use laos_primitives::RuntimeBlockWeights;
use parachains_common::DAYS;
use sp_runtime::Perbill;

#[cfg(feature = "fast-mode")]
use parachains_common::MINUTES;
#[cfg(not(feature = "fast-mode"))]
use parachains_common::DAYS;

#[cfg(feature = "fast-mode")]
pub const COUNCIL_MOTION_DURATION: BlockNumber = 5 * MINUTES;
#[cfg(not(feature = "fast-mode"))]
Expand Down
5 changes: 3 additions & 2 deletions runtime/laos/src/configs/treasury.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ use frame_support::{
PalletId,
};
use frame_system::EnsureRoot;
#[cfg(feature = "fast-mode")]
use parachains_common::MINUTES;
#[cfg(not(feature = "fast-mode"))]
use parachains_common::DAYS;
use sp_runtime::traits::IdentityLookup;

#[cfg(feature = "fast-mode")]
use parachains_common::MINUTES;
#[cfg(feature = "fast-mode")]
const TREASURY_SPENDING_PRERIOD: BlockNumber = 5 * MINUTES;
#[cfg(not(feature = "fast-mode"))]
Expand Down

0 comments on commit 076ed82

Please sign in to comment.