From 468604947756119f6b2f5b227756923c84b575f5 Mon Sep 17 00:00:00 2001 From: Dmitry Lavrenov Date: Sat, 12 Oct 2024 17:01:02 +0300 Subject: [PATCH] Hotfix of OffenceSlasher logic due to substrate: im-online: don't disable offending validators #13493 --- crates/humanode-runtime/src/lib.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/humanode-runtime/src/lib.rs b/crates/humanode-runtime/src/lib.rs index d3a06e0c3..c8ad87d80 100644 --- a/crates/humanode-runtime/src/lib.rs +++ b/crates/humanode-runtime/src/lib.rs @@ -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 = ::DbWeight::get(); let mut should_be_deauthenticated = Vec::with_capacity(offenders.len());