diff --git a/runtime/common/src/elections.rs b/runtime/common/src/elections.rs index 4e2b080bfc21..4741898f061c 100644 --- a/runtime/common/src/elections.rs +++ b/runtime/common/src/elections.rs @@ -60,14 +60,15 @@ impl pallet_election_provider_multi_phase::BenchmarkingConfig for BenchmarkConfi pub type OnOnChainAccuracy = sp_runtime::Perbill; /// The election provider of the genesis -pub type GenesisElectionOf = frame_election_provider_support::onchain::OnChainSequentialPhragmen; +pub type GenesisElectionOf = + frame_election_provider_support::onchain::OnChainSequentialPhragmen; /// Maximum number of iterations for balancing that will be executed in the embedded miner of /// pallet-election-provider-multi-phase. pub const MINER_MAX_ITERATIONS: u32 = 10; -/// A source of random balance for the NPoS Solver, which is meant to be run by the OCW election -/// miner. +/// A source of random balance for the NPoS Solver, which is meant to be run by the offchain worker +/// election miner. pub struct OffchainRandomBalancing; impl frame_support::pallet_prelude::Get> for OffchainRandomBalancing diff --git a/runtime/kusama/src/weights/pallet_collective_council.rs b/runtime/kusama/src/weights/pallet_collective_council.rs index 21abbb70bf35..4ffa6f5cda03 100644 --- a/runtime/kusama/src/weights/pallet_collective_council.rs +++ b/runtime/kusama/src/weights/pallet_collective_council.rs @@ -41,7 +41,7 @@ use frame_support::{traits::Get, weights::Weight}; use sp_std::marker::PhantomData; -/// Weight functions for pallet_collective. +/// Weight functions for `pallet_collective`. pub struct WeightInfo(PhantomData); impl pallet_collective::WeightInfo for WeightInfo { // Storage: Instance1Collective Members (r:1 w:1) diff --git a/runtime/kusama/src/weights/pallet_collective_technical_committee.rs b/runtime/kusama/src/weights/pallet_collective_technical_committee.rs index e860a1d224e7..d61bb433c99e 100644 --- a/runtime/kusama/src/weights/pallet_collective_technical_committee.rs +++ b/runtime/kusama/src/weights/pallet_collective_technical_committee.rs @@ -41,7 +41,7 @@ use frame_support::{traits::Get, weights::Weight}; use sp_std::marker::PhantomData; -/// Weight functions for pallet_collective. +/// Weight functions for `pallet_collective`. pub struct WeightInfo(PhantomData); impl pallet_collective::WeightInfo for WeightInfo { // Storage: Instance2Collective Members (r:1 w:1) diff --git a/runtime/polkadot/src/weights/pallet_collective_council.rs b/runtime/polkadot/src/weights/pallet_collective_council.rs index d0a389bfac09..6d7eabaef2b2 100644 --- a/runtime/polkadot/src/weights/pallet_collective_council.rs +++ b/runtime/polkadot/src/weights/pallet_collective_council.rs @@ -41,7 +41,7 @@ use frame_support::{traits::Get, weights::Weight}; use sp_std::marker::PhantomData; -/// Weight functions for pallet_collective. +/// Weight functions for `pallet_collective`. pub struct WeightInfo(PhantomData); impl pallet_collective::WeightInfo for WeightInfo { // Storage: Instance1Collective Members (r:1 w:1) diff --git a/runtime/polkadot/src/weights/pallet_collective_technical_committee.rs b/runtime/polkadot/src/weights/pallet_collective_technical_committee.rs index 9c50b3b58ba1..a272fc708f00 100644 --- a/runtime/polkadot/src/weights/pallet_collective_technical_committee.rs +++ b/runtime/polkadot/src/weights/pallet_collective_technical_committee.rs @@ -41,7 +41,7 @@ use frame_support::{traits::Get, weights::Weight}; use sp_std::marker::PhantomData; -/// Weight functions for pallet_collective. +/// Weight functions for `pallet_collective`. pub struct WeightInfo(PhantomData); impl pallet_collective::WeightInfo for WeightInfo { // Storage: Instance2Collective Members (r:1 w:1)