Companion for Substrate#13411: frame/beefy: prune entries in set id session mapping (#6743)

* rococo-runtime: configure pallet_beefy::MaxSetIdSessionEntries

* update lockfile for {"substrate"}

---------

Co-authored-by: parity-processbot <>
This commit is contained in:
Adrian Catangiu
2023-02-21 13:30:19 +02:00
committed by GitHub
parent d091a84a07
commit 09df3f1ec8
2 changed files with 187 additions and 182 deletions
+182 -182
View File
File diff suppressed because it is too large Load Diff
+5
View File
@@ -1247,6 +1247,10 @@ impl pallet_nis::Config for Runtime {
type ReserveId = NisReserveId;
}
parameter_types! {
pub const BeefySetIdSessionEntries: u32 = BondingDuration::get() * SessionsPerEra::get();
}
impl pallet_beefy::Config for Runtime {
type BeefyId = BeefyId;
type KeyOwnerProofSystem = Historical;
@@ -1263,6 +1267,7 @@ impl pallet_beefy::Config for Runtime {
ReportLongevity,
>;
type MaxAuthorities = MaxAuthorities;
type MaxSetIdSessionEntries = BeefySetIdSessionEntries;
type OnNewValidatorSet = MmrLeaf;
type WeightInfo = ();
}