Generate storage info for aura pallet (#9371)

* Generate storage info for aura pallet

* Add MaxAuthorities to node-template aura pallet config

* Fix compilation errors on node-template

* Use WeakBoundedVec instead of BoundedVec

* Improve comment on BoundedSlice's EncodeLike impl

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>

* Bump MaxAuthorities count to 32 for node template

* cargo fmt

* cargo fmt

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
This commit is contained in:
Keith Yeung
2021-09-01 18:24:08 -07:00
committed by GitHub
parent 7fe40d4c90
commit 886825a5c0
6 changed files with 44 additions and 17 deletions
+5
View File
@@ -87,6 +87,10 @@ impl pallet_timestamp::Config for Test {
type WeightInfo = ();
}
parameter_types! {
pub const MaxAuthorities: u32 = 10;
}
thread_local! {
static DISABLED_VALIDATORS: RefCell<Vec<AuthorityIndex>> = RefCell::new(Default::default());
}
@@ -113,6 +117,7 @@ impl DisabledValidators for MockDisabledValidators {
impl pallet_aura::Config for Test {
type AuthorityId = AuthorityId;
type DisabledValidators = MockDisabledValidators;
type MaxAuthorities = MaxAuthorities;
}
pub fn new_test_ext(authorities: Vec<u64>) -> sp_io::TestExternalities {