mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-07 03:11:07 +00:00
frame/beefy: prune entries in set id session mapping (#13411)
Add limit for the number of entries in the `SetIdSession` mapping. For example, it can be set to the bonding duration (in sessions). Signed-off-by: acatangiu <adrian@parity.io>
This commit is contained in:
1 parent
7a10154188
commit
67c250fecb
4 files changed
+59
-1
No files matched your search
@@ -133,6 +133,7 @@ impl pallet_beefy::Config for Test {
|
||||
)>>::IdentificationTuple;
|
||||
type HandleEquivocation = ();
|
||||
type MaxAuthorities = ConstU32<100>;
|
||||
type MaxSetIdSessionEntries = ConstU64<100>;
|
||||
type OnNewValidatorSet = BeefyMmr;
|
||||
type WeightInfo = ();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user