Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 79809c1

Browse files
committed
add DisabledValidatorsThreshold to parachain template
1 parent 7360a62 commit 79809c1

File tree

1 file changed

+2
-0
lines changed
  • parachain-template/runtime/src

1 file changed

+2
-0
lines changed

parachain-template/runtime/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,7 @@ parameter_types! {
548548
pub const Period: u32 = 6 * HOURS;
549549
pub const Offset: u32 = 0;
550550
pub const MaxAuthorities: u32 = 100_000;
551+
pub const DisabledValidatorsThreshold: Perbill = Perbill::from_percent(17);
551552
}
552553

553554
impl pallet_session::Config for Runtime {
@@ -561,6 +562,7 @@ impl pallet_session::Config for Runtime {
561562
// Essentially just Aura, but lets be pedantic.
562563
type SessionHandler = <SessionKeys as sp_runtime::traits::OpaqueKeys>::KeyTypeIdProviders;
563564
type Keys = SessionKeys;
565+
type DisabledValidatorsThreshold = DisabledValidatorsThreshold;
564566
type WeightInfo = ();
565567
}
566568

0 commit comments

Comments
 (0)