mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 23:21:02 +00:00
Rewrap all comments to 100 line width (#9490)
* reformat everything again * manual formatting * last manual fix * Fix build
This commit is contained in:
@@ -401,9 +401,9 @@ pub mod pallet {
|
||||
/// origin is removed as a runner-up.
|
||||
/// - `origin` is a current member. In this case, the deposit is unreserved and origin is
|
||||
/// removed as a member, consequently not being a candidate for the next round anymore.
|
||||
/// Similar to [`remove_member`](Self::remove_member), if replacement runners exists,
|
||||
/// they are immediately used. If the prime is renouncing, then no prime will exist until
|
||||
/// the next round.
|
||||
/// Similar to [`remove_member`](Self::remove_member), if replacement runners exists, they
|
||||
/// are immediately used. If the prime is renouncing, then no prime will exist until the
|
||||
/// next round.
|
||||
///
|
||||
/// The dispatch origin of this call must be signed, and have one of the above roles.
|
||||
///
|
||||
@@ -673,9 +673,10 @@ pub mod pallet {
|
||||
"Genesis member does not have enough stake.",
|
||||
);
|
||||
|
||||
// Note: all members will only vote for themselves, hence they must be given exactly
|
||||
// their own stake as total backing. Any sane election should behave as such.
|
||||
// Nonetheless, stakes will be updated for term 1 onwards according to the election.
|
||||
// Note: all members will only vote for themselves, hence they must be given
|
||||
// exactly their own stake as total backing. Any sane election should behave as
|
||||
// such. Nonetheless, stakes will be updated for term 1 onwards according to the
|
||||
// election.
|
||||
Members::<T>::mutate(|members| {
|
||||
match members.binary_search_by(|m| m.who.cmp(member)) {
|
||||
Ok(_) =>
|
||||
@@ -692,9 +693,9 @@ pub mod pallet {
|
||||
});
|
||||
|
||||
// set self-votes to make persistent. Genesis voters don't have any bond, nor do
|
||||
// they have any lock. NOTE: this means that we will still try to remove a lock once
|
||||
// this genesis voter is removed, and for now it is okay because remove_lock is noop
|
||||
// if lock is not there.
|
||||
// they have any lock. NOTE: this means that we will still try to remove a lock
|
||||
// once this genesis voter is removed, and for now it is okay because
|
||||
// remove_lock is noop if lock is not there.
|
||||
<Voting<T>>::insert(
|
||||
&member,
|
||||
Voter { votes: vec![member.clone()], stake: *stake, deposit: Zero::zero() },
|
||||
|
||||
Reference in New Issue
Block a user