From 79809c1faf437de6684af768ef8ff7b05a2a4659 Mon Sep 17 00:00:00 2001 From: Alexander Popiak Date: Wed, 13 Oct 2021 15:35:22 +0200 Subject: [PATCH] add DisabledValidatorsThreshold to parachain template --- parachain-template/runtime/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/parachain-template/runtime/src/lib.rs b/parachain-template/runtime/src/lib.rs index 4b5bd255dcc..66a2e2aaab8 100644 --- a/parachain-template/runtime/src/lib.rs +++ b/parachain-template/runtime/src/lib.rs @@ -548,6 +548,7 @@ parameter_types! { pub const Period: u32 = 6 * HOURS; pub const Offset: u32 = 0; pub const MaxAuthorities: u32 = 100_000; + pub const DisabledValidatorsThreshold: Perbill = Perbill::from_percent(17); } impl pallet_session::Config for Runtime { @@ -561,6 +562,7 @@ impl pallet_session::Config for Runtime { // Essentially just Aura, but lets be pedantic. type SessionHandler = ::KeyTypeIdProviders; type Keys = SessionKeys; + type DisabledValidatorsThreshold = DisabledValidatorsThreshold; type WeightInfo = (); }