Fix experimental aura config and comment tests (#3057)

* Fix aura config

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Fix Cargo.toml files

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Ignore feature-dependant tests

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Allow dead code

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

---------

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
Oliver Tale-Yazdi
2023-08-24 20:39:32 +02:00
committed by GitHub
parent bfb8acb5a9
commit 811189174d
29 changed files with 62 additions and 0 deletions
@@ -210,3 +210,5 @@ std = [
"assets-common/std",
"substrate-wasm-builder",
]
experimental = [ "pallet-aura/experimental" ]
@@ -677,6 +677,8 @@ impl pallet_aura::Config for Runtime {
type DisabledValidators = ();
type MaxAuthorities = ConstU32<100_000>;
type AllowMultipleBlocksPerSlot = ConstBool<false>;
#[cfg(feature = "experimental")]
type SlotDuration = pallet_aura::MinimumPeriodTimesTwo<Self>;
}
parameter_types! {
@@ -190,3 +190,5 @@ std = [
"assets-common/std",
"substrate-wasm-builder",
]
experimental = [ "pallet-aura/experimental" ]
@@ -614,6 +614,8 @@ impl pallet_aura::Config for Runtime {
type DisabledValidators = ();
type MaxAuthorities = ConstU32<100_000>;
type AllowMultipleBlocksPerSlot = ConstBool<false>;
#[cfg(feature = "experimental")]
type SlotDuration = pallet_aura::MinimumPeriodTimesTwo<Self>;
}
parameter_types! {
@@ -200,3 +200,5 @@ std = [
"assets-common/std",
"substrate-wasm-builder",
]
experimental = [ "pallet-aura/experimental" ]
@@ -645,6 +645,8 @@ impl pallet_aura::Config for Runtime {
type DisabledValidators = ();
type MaxAuthorities = ConstU32<100_000>;
type AllowMultipleBlocksPerSlot = ConstBool<false>;
#[cfg(feature = "experimental")]
type SlotDuration = pallet_aura::MinimumPeriodTimesTwo<Self>;
}
parameter_types! {