mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 02:48:03 +00:00
committed by
GitHub
parent
cac9d85cb3
commit
fcfb766366
@@ -384,7 +384,7 @@ pub trait NposSolver {
|
||||
) -> Result<ElectionResult<Self::AccountId, Self::Accuracy>, Self::Error>;
|
||||
}
|
||||
|
||||
/// A wrapper for [`sp_npos_elections::seq_phragmen`] that implements [`super::NposSolver`]. See the
|
||||
/// A wrapper for [`sp_npos_elections::seq_phragmen`] that implements [`NposSolver`]. See the
|
||||
/// documentation of [`sp_npos_elections::seq_phragmen`] for more info.
|
||||
pub struct SequentialPhragmen<AccountId, Accuracy, Balancing = ()>(
|
||||
sp_std::marker::PhantomData<(AccountId, Accuracy, Balancing)>,
|
||||
@@ -408,8 +408,8 @@ impl<
|
||||
}
|
||||
}
|
||||
|
||||
/// A wrapper for [`sp_npos_elections::phragmms`] that implements [`NposSolver`]. See the
|
||||
/// documentation of [`sp_npos_elections::phragmms`] for more info.
|
||||
/// A wrapper for [`sp_npos_elections::phragmms()`] that implements [`NposSolver`]. See the
|
||||
/// documentation of [`sp_npos_elections::phragmms()`] for more info.
|
||||
pub struct PhragMMS<AccountId, Accuracy, Balancing = ()>(
|
||||
sp_std::marker::PhantomData<(AccountId, Accuracy, Balancing)>,
|
||||
);
|
||||
|
||||
@@ -57,7 +57,7 @@ pub struct OnChainSequentialPhragmen<T: Config>(PhantomData<T>);
|
||||
///
|
||||
/// WARNING: the user of this pallet must ensure that the `Accuracy` type will work nicely with the
|
||||
/// normalization operation done inside `seq_phragmen`. See
|
||||
/// [`sp_npos_elections::assignment::try_normalize`] for more info.
|
||||
/// [`sp_npos_elections::Assignment::try_normalize`] for more info.
|
||||
pub trait Config: frame_system::Config {
|
||||
/// The accuracy used to compute the election:
|
||||
type Accuracy: PerThing128;
|
||||
|
||||
Reference in New Issue
Block a user