diff --git a/polkadot/runtime/common/src/elections.rs b/polkadot/runtime/common/src/elections.rs index 4e2b080bfc..4741898f06 100644 --- a/polkadot/runtime/common/src/elections.rs +++ b/polkadot/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/polkadot/runtime/kusama/src/weights/pallet_collective_council.rs b/polkadot/runtime/kusama/src/weights/pallet_collective_council.rs index 21abbb70bf..4ffa6f5cda 100644 --- a/polkadot/runtime/kusama/src/weights/pallet_collective_council.rs +++ b/polkadot/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/polkadot/runtime/kusama/src/weights/pallet_collective_technical_committee.rs b/polkadot/runtime/kusama/src/weights/pallet_collective_technical_committee.rs index e860a1d224..d61bb433c9 100644 --- a/polkadot/runtime/kusama/src/weights/pallet_collective_technical_committee.rs +++ b/polkadot/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/polkadot/runtime/polkadot/src/weights/pallet_collective_council.rs b/polkadot/runtime/polkadot/src/weights/pallet_collective_council.rs index d0a389bfac..6d7eabaef2 100644 --- a/polkadot/runtime/polkadot/src/weights/pallet_collective_council.rs +++ b/polkadot/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/polkadot/runtime/polkadot/src/weights/pallet_collective_technical_committee.rs b/polkadot/runtime/polkadot/src/weights/pallet_collective_technical_committee.rs index 9c50b3b58b..a272fc708f 100644 --- a/polkadot/runtime/polkadot/src/weights/pallet_collective_technical_committee.rs +++ b/polkadot/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)