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

bounding staking: BoundedElectionProvider trait #12362

Merged
merged 13 commits into from
Sep 28, 2022
Prev Previous commit
Next Next commit
fix rustdocs
  • Loading branch information
Ank4n committed Sep 27, 2022
commit 96a5dec214427d34688be162badefaec1b621441
6 changes: 5 additions & 1 deletion frame/election-provider-support/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,16 @@
//! type DataProvider: ElectionDataProvider<AccountId=AccountId, BlockNumber = BlockNumber>;
//! }
//!
//! impl<T: Config> ElectionProvider for GenericElectionProvider<T> {
//! impl<T: Config> ElectionProviderBase for GenericElectionProvider<T> {
//! type AccountId = AccountId;
//! type BlockNumber = BlockNumber;
//! type Error = &'static str;
//! type DataProvider = T::DataProvider;
//! fn ongoing() -> bool { false }
//!
//! }
//!
//! impl<T: Config> ElectionProvider for GenericElectionProvider<T> {
//! fn elect() -> Result<Supports<AccountId>, Self::Error> {
//! Self::DataProvider::electable_targets(None)
//! .map_err(|_| "failed to elect")
Expand Down