pallet-aura: Allow multiple blocks per slot (#14024)

* pallet-aura: Allow multiple blocks per slot

* run fmt

* rework as associated type

* fix fallout

* fmt

* use constbool

* fmt
This commit is contained in:
asynchronous rob
2023-06-09 16:04:37 -05:00
committed by GitHub
parent 881fd1e0dc
commit 62f37e105c
4 changed files with 86 additions and 2 deletions
+2
View File
@@ -82,6 +82,7 @@ impl pallet_timestamp::Config for Test {
parameter_types! {
static DisabledValidatorTestValue: Vec<AuthorityIndex> = Default::default();
pub static AllowMultipleBlocksPerSlot: bool = false;
}
pub struct MockDisabledValidators;
@@ -106,6 +107,7 @@ impl pallet_aura::Config for Test {
type AuthorityId = AuthorityId;
type DisabledValidators = MockDisabledValidators;
type MaxAuthorities = ConstU32<10>;
type AllowMultipleBlocksPerSlot = AllowMultipleBlocksPerSlot;
}
pub fn new_test_ext(authorities: Vec<u64>) -> sp_io::TestExternalities {