From bb410e0fa9bcc7d9bcfc3ef8031b00e5d887d1b0 Mon Sep 17 00:00:00 2001 From: Steve Degosserie <723552+stiiifff@users.noreply.github.com> Date: Tue, 18 Nov 2025 08:51:06 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=94=A8=20Correctly=20set=20the=20o?= =?UTF-8?q?ffences=20pallet's=20OnOffenceHandler=20to=20the=20external-val?= =?UTF-8?q?idator-slashes=20pallet=20(#303)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- operator/runtime/mainnet/src/configs/mod.rs | 3 +-- operator/runtime/stagenet/src/configs/mod.rs | 3 +-- operator/runtime/testnet/src/configs/mod.rs | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/operator/runtime/mainnet/src/configs/mod.rs b/operator/runtime/mainnet/src/configs/mod.rs index d4702b32..dc16b9ca 100644 --- a/operator/runtime/mainnet/src/configs/mod.rs +++ b/operator/runtime/mainnet/src/configs/mod.rs @@ -373,8 +373,7 @@ impl pallet_authorship::Config for Runtime { impl pallet_offences::Config for Runtime { type RuntimeEvent = RuntimeEvent; type IdentificationTuple = pallet_session::historical::IdentificationTuple; - // TODO set to External Validators Slashs Pallet once it's added to the runtime - type OnOffenceHandler = (); + type OnOffenceHandler = ExternalValidatorsSlashes; } pub struct FullIdentificationOf; diff --git a/operator/runtime/stagenet/src/configs/mod.rs b/operator/runtime/stagenet/src/configs/mod.rs index 669b159c..bd569552 100644 --- a/operator/runtime/stagenet/src/configs/mod.rs +++ b/operator/runtime/stagenet/src/configs/mod.rs @@ -373,8 +373,7 @@ impl pallet_authorship::Config for Runtime { impl pallet_offences::Config for Runtime { type RuntimeEvent = RuntimeEvent; type IdentificationTuple = pallet_session::historical::IdentificationTuple; - // TODO set to External Validators Slashs Pallet once it's added to the runtime - type OnOffenceHandler = (); + type OnOffenceHandler = ExternalValidatorsSlashes; } pub struct FullIdentificationOf; diff --git a/operator/runtime/testnet/src/configs/mod.rs b/operator/runtime/testnet/src/configs/mod.rs index 1434e22c..64a74bdd 100644 --- a/operator/runtime/testnet/src/configs/mod.rs +++ b/operator/runtime/testnet/src/configs/mod.rs @@ -373,8 +373,7 @@ impl pallet_authorship::Config for Runtime { impl pallet_offences::Config for Runtime { type RuntimeEvent = RuntimeEvent; type IdentificationTuple = pallet_session::historical::IdentificationTuple; - // TODO set to External Validators Slashs Pallet once it's added to the runtime - type OnOffenceHandler = (); + type OnOffenceHandler = ExternalValidatorsSlashes; } pub struct FullIdentificationOf;