pallet-aura: add feature-flagged explicit slot duration type (#14649)

* aura: add feature-flagged explicit slot duration type

* fmt

* add some comments

* have node-template use new explicit feature

* fix mock

* fmt

* use the experimental feature flag instead

* checkout master Cargo.lock
This commit is contained in:
asynchronous rob
2023-08-03 21:58:59 -07:00
committed by GitHub
parent 476ee340d9
commit 08f680e281
5 changed files with 49 additions and 4 deletions
@@ -114,3 +114,4 @@ try-runtime = [
"pallet-transaction-payment/try-runtime",
"sp-runtime/try-runtime"
]
experimental = ["pallet-aura/experimental"]
@@ -207,6 +207,9 @@ impl pallet_aura::Config for Runtime {
type DisabledValidators = ();
type MaxAuthorities = ConstU32<32>;
type AllowMultipleBlocksPerSlot = ConstBool<false>;
#[cfg(feature = "experimental")]
type SlotDuration = pallet_aura::MinimumPeriodTimesTwo<Runtime>;
}
impl pallet_grandpa::Config for Runtime {