Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Open
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
4 changes: 4 additions & 0 deletions runtime/kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ impl pallet_session::Config for Runtime {
type NextSessionRotation = Babe;
type SessionManager = pallet_session::historical::NoteHistoricalRoot<Self, Staking>;
type SessionHandler = <SessionKeys as OpaqueKeys>::KeyTypeIdProviders;
type SessionChangeListener = Offences;
type Keys = SessionKeys;
type WeightInfo = weights::pallet_session::WeightInfo<Runtime>;
}
Expand Down Expand Up @@ -666,6 +667,7 @@ impl pallet_bounties::Config for Runtime {
parameter_types! {
pub const MaxActiveChildBountyCount: u32 = 100;
pub const ChildBountyValueMinimum: Balance = BountyValueMinimum::get() / 10;
pub const MaxSessionReportAge: u32 = BondingDuration::get() * SessionsPerEra::get();
}

impl pallet_child_bounties::Config for Runtime {
Expand All @@ -679,6 +681,8 @@ impl pallet_offences::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type IdentificationTuple = pallet_session::historical::IdentificationTuple<Self>;
type OnOffenceHandler = Staking;
type MaxSessionReportAge = MaxSessionReportAge;
type SessionInfoProvider = Session;
}

impl pallet_authority_discovery::Config for Runtime {
Expand Down
4 changes: 4 additions & 0 deletions runtime/polkadot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ impl pallet_session::Config for Runtime {
type NextSessionRotation = Babe;
type SessionManager = pallet_session::historical::NoteHistoricalRoot<Self, Staking>;
type SessionHandler = <SessionKeys as OpaqueKeys>::KeyTypeIdProviders;
type SessionChangeListener = Offences;
type Keys = SessionKeys;
type WeightInfo = weights::pallet_session::WeightInfo<Runtime>;
}
Expand Down Expand Up @@ -704,6 +705,7 @@ impl pallet_bounties::Config for Runtime {
parameter_types! {
pub const MaxActiveChildBountyCount: u32 = 100;
pub const ChildBountyValueMinimum: Balance = BountyValueMinimum::get() / 10;
pub const MaxSessionReportAge: u32 = BondingDuration::get() * SessionsPerEra::get();
}

impl pallet_child_bounties::Config for Runtime {
Expand All @@ -728,6 +730,8 @@ impl pallet_offences::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type IdentificationTuple = pallet_session::historical::IdentificationTuple<Self>;
type OnOffenceHandler = Staking;
type MaxSessionReportAge = MaxSessionReportAge;
type SessionInfoProvider = Session;
}

impl pallet_authority_discovery::Config for Runtime {
Expand Down
4 changes: 4 additions & 0 deletions runtime/rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ impl pallet_session::Config for Runtime {
type NextSessionRotation = Babe;
type SessionManager = pallet_session::historical::NoteHistoricalRoot<Self, ValidatorManager>;
type SessionHandler = <SessionKeys as OpaqueKeys>::KeyTypeIdProviders;
type SessionChangeListener = Offences;
type Keys = SessionKeys;
type WeightInfo = weights::pallet_session::WeightInfo<Runtime>;
}
Expand Down Expand Up @@ -605,6 +606,7 @@ impl pallet_bounties::Config for Runtime {
parameter_types! {
pub const MaxActiveChildBountyCount: u32 = 100;
pub const ChildBountyValueMinimum: Balance = BountyValueMinimum::get() / 10;
pub const MaxSessionReportAge: u32 = BondingDuration::get() * SessionsPerEra::get();
}

impl pallet_child_bounties::Config for Runtime {
Expand All @@ -629,6 +631,8 @@ impl pallet_offences::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type IdentificationTuple = pallet_session::historical::IdentificationTuple<Self>;
type OnOffenceHandler = ();
type MaxSessionReportAge = MaxSessionReportAge;
type SessionInfoProvider = Session;
}

impl pallet_authority_discovery::Config for Runtime {
Expand Down
4 changes: 4 additions & 0 deletions runtime/test-runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ impl pallet_session::Config for Runtime {
type NextSessionRotation = Babe;
type SessionManager = Staking;
type SessionHandler = <SessionKeys as OpaqueKeys>::KeyTypeIdProviders;
type SessionChangeListener = Offences;
type Keys = SessionKeys;
type WeightInfo = ();
}
Expand Down Expand Up @@ -359,6 +360,7 @@ impl pallet_staking::Config for Runtime {

parameter_types! {
pub MaxSetIdSessionEntries: u32 = BondingDuration::get() * SessionsPerEra::get();
pub MaxSessionReportAge: u32 = BondingDuration::get() * SessionsPerEra::get();
}

impl pallet_grandpa::Config for Runtime {
Expand Down Expand Up @@ -421,6 +423,8 @@ impl pallet_offences::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type IdentificationTuple = pallet_session::historical::IdentificationTuple<Self>;
type OnOffenceHandler = Staking;
type MaxSessionReportAge = MaxSessionReportAge;
type SessionInfoProvider = Session;
}

impl pallet_authority_discovery::Config for Runtime {
Expand Down
4 changes: 4 additions & 0 deletions runtime/westend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ impl pallet_session::Config for Runtime {
type NextSessionRotation = Babe;
type SessionManager = pallet_session::historical::NoteHistoricalRoot<Self, Staking>;
type SessionHandler = <SessionKeys as OpaqueKeys>::KeyTypeIdProviders;
type SessionChangeListener = Offences;
type Keys = SessionKeys;
type WeightInfo = weights::pallet_session::WeightInfo<Runtime>;
}
Expand Down Expand Up @@ -532,12 +533,15 @@ impl pallet_fast_unstake::Config for Runtime {

parameter_types! {
pub const MaxAuthorities: u32 = 100_000;
pub const MaxSessionReportAge: u32 = BondingDuration::get() * SessionsPerEra::get();
}

impl pallet_offences::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type IdentificationTuple = pallet_session::historical::IdentificationTuple<Self>;
type OnOffenceHandler = Staking;
type MaxSessionReportAge = MaxSessionReportAge;
type SessionInfoProvider = Session;
}

impl pallet_authority_discovery::Config for Runtime {
Expand Down