From fde96e3d105f57464a6a7b15a81fbe4fa0b99674 Mon Sep 17 00:00:00 2001 From: Frank Bell Date: Mon, 29 Jul 2024 08:58:43 +0100 Subject: [PATCH] fix(testnet): restore experimental feature --- Cargo.toml | 2 +- runtime/testnet/src/lib.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e831d465..b099f99c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -52,7 +52,7 @@ substrate-build-script-utils = "11.0.0" # Local pop-runtime-devnet = { path = "runtime/devnet", default-features = true, features = ["experimental"] } # default-features=true required for `-p pop-node` builds -pop-runtime-testnet = { path = "runtime/testnet", default-features = true } # default-features=true required for `-p pop-node` builds +pop-runtime-testnet = { path = "runtime/testnet", default-features = true, features = ["experimental"] } # default-features=true required for `-p pop-node` builds pop-runtime-common = { path = "runtime/common", default-features = false } pop-primitives = { path = "./primitives", default-features = false } diff --git a/runtime/testnet/src/lib.rs b/runtime/testnet/src/lib.rs index eb6e3154..97bdae1b 100644 --- a/runtime/testnet/src/lib.rs +++ b/runtime/testnet/src/lib.rs @@ -440,9 +440,10 @@ impl pallet_aura::Config for Runtime { type DisabledValidators = (); type MaxAuthorities = ConstU32<100_000>; type AllowMultipleBlocksPerSlot = ConstBool; - // Note: SlotDuration enabled here due to being enabled for devnet runtime and Rust's feature + // Note: SlotDuration potentially enabled here due to devnet runtime and Rust's feature // unification, requiring the setting of a backwards compatible value. // See https://github.com/paritytech/polkadot-sdk/blob/09df373db9cd5dfed82c5cdb0736d417d54249e6/substrate/frame/aura/src/lib.rs#L262 + #[cfg(feature = "experimental")] type SlotDuration = pallet_aura::MinimumPeriodTimesTwo; }