WeightInfo for Session Pallet (#7136)

* whitelist caller in benchmarks

* remove unused component

* Add benchmark weights

* Remove `weightinfo` for `offences`
This commit is contained in:
Shawn Tabrizi
2020-09-21 11:13:31 +02:00
committed by GitHub
parent ae52587f41
commit 9e9e34fad8
11 changed files with 93 additions and 24 deletions
+1 -2
View File
@@ -403,7 +403,7 @@ impl pallet_session::Trait for Runtime {
type SessionHandler = <SessionKeys as OpaqueKeys>::KeyTypeIdProviders;
type Keys = SessionKeys;
type DisabledValidatorsThreshold = DisabledValidatorsThreshold;
type WeightInfo = ();
type WeightInfo = weights::pallet_session::WeightInfo;
}
impl pallet_session::historical::Trait for Runtime {
@@ -762,7 +762,6 @@ impl pallet_offences::Trait for Runtime {
type IdentificationTuple = pallet_session::historical::IdentificationTuple<Self>;
type OnOffenceHandler = Staking;
type WeightSoftLimit = OffencesWeightSoftLimit;
type WeightInfo = ();
}
impl pallet_authority_discovery::Trait for Runtime {}