Skip to content

Commit

Permalink
Hotfix of OffenceSlasher logic due to substrate: im-online: don't dis…
Browse files Browse the repository at this point in the history
…able offending validators #13493
  • Loading branch information
dmitrylavrenov committed Oct 12, 2024
1 parent e0bf8a2 commit 4686049
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/humanode-runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -584,11 +584,8 @@ impl
>],
_slash_fraction: &[Perbill],
_session: sp_staking::SessionIndex,
disable_strategy: sp_staking::offence::DisableStrategy,
_disable_strategy: sp_staking::offence::DisableStrategy,
) -> Weight {
if disable_strategy == sp_staking::offence::DisableStrategy::Never {
return Weight::zero();
}
let mut weight: Weight = Weight::zero();
let weights = <Runtime as frame_system::Config>::DbWeight::get();
let mut should_be_deauthenticated = Vec::with_capacity(offenders.len());
Expand Down

0 comments on commit 4686049

Please sign in to comment.