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 authored and GitHub committed 2023-08-04 04:58:59 +00:00
1 parent 476ee340d9
commit 08f680e281
5 files changed
+49 -4

No files matched your search

@@ -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 {