Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update frame/election-provider-multi-phase/src/signed.rs
Co-authored-by: Niklas Adolfsson <[email protected]>
  • Loading branch information
kianenigma and niklasad1 authored Oct 6, 2022
commit 61916f40179f58aa1d74b5137d0509662a8b152c
2 changes: 1 addition & 1 deletion frame/election-provider-multi-phase/src/signed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ impl<T: Config> SignedSubmissions<T> {
self.indices
.sort_by(|(score1, bn1, _), (score2, bn2, _)| match score1.cmp(score2) {
Ordering::Equal => bn1.cmp(&bn2).reverse(),
x @ _ => x,
x => x,
});

// we've taken out the weakest, so update the storage map and the next index
Expand Down