Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions runtime/devnet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ parameter_types! {
}

impl pallet_session::Config for Runtime {
type DisablingStrategy = ();
type Keys = SessionKeys;
type NextSessionRotation = pallet_session::PeriodicSessions<Period, Offset>;
type RuntimeEvent = RuntimeEvent;
Expand Down
9 changes: 9 additions & 0 deletions runtime/mainnet/src/config/collation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ impl pallet_collator_selection::Config for Runtime {
impl cumulus_pallet_aura_ext::Config for Runtime {}

impl pallet_session::Config for Runtime {
type DisablingStrategy = ();
type Keys = SessionKeys;
type NextSessionRotation = pallet_session::PeriodicSessions<Period, Offset>;
type RuntimeEvent = RuntimeEvent;
Expand Down Expand Up @@ -255,6 +256,14 @@ mod tests {
mod session {
use super::*;

#[test]
fn ensures_no_disabling_strategy() {
assert_eq!(
TypeId::of::<<Runtime as pallet_session::Config>::DisablingStrategy>(),
TypeId::of::<()>(),
);
}

#[test]
fn keys_provided_by_aura() {
// Session keys implementation uses aura-defined authority identifier type
Expand Down
1 change: 1 addition & 0 deletions runtime/testnet/src/config/collation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ parameter_types! {
}

impl pallet_session::Config for Runtime {
type DisablingStrategy = ();
type Keys = SessionKeys;
type NextSessionRotation = pallet_session::PeriodicSessions<Period, Offset>;
type RuntimeEvent = RuntimeEvent;
Expand Down
Loading