Companion PR for #8414 - Remove OffencesWeightSoftLimit (#2966)

* Remove OffencesWeightSoftLimit

* update Substrate

Co-authored-by: parity-processbot <>
This commit is contained in:
Lohann Paterno Coutinho Ferreira
2021-05-03 06:12:39 -03:00
committed by GitHub
parent 002f49fb03
commit 9bbc0b4460
6 changed files with 150 additions and 175 deletions
-5
View File
@@ -428,15 +428,10 @@ parameter_types! {
pub const InstantAllowed: bool = true;
}
parameter_types! {
pub OffencesWeightSoftLimit: Weight = Perbill::from_percent(60) * BlockWeights::get().max_block;
}
impl pallet_offences::Config for Runtime {
type Event = Event;
type IdentificationTuple = pallet_session::historical::IdentificationTuple<Self>;
type OnOffenceHandler = Staking;
type WeightSoftLimit = OffencesWeightSoftLimit;
}
impl pallet_authority_discovery::Config for Runtime {}