mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 20:11:09 +00:00
Benchmark Offences Pallet (#5411)
* Add initial report_ofence bench. * Remove unused imports * Style nit * Add nominators * Remove logs. * Nits. * Add nominators param. * Reorg, comment. * Remove whitespaces. * Apply review suggestion: move benchmark to own crate. * Remove import. * Remove line. * Add feature flag. * Pass can_report. * Cleaning up. * More cleaning
This commit is contained in:
@@ -191,8 +191,8 @@ decl_storage! {
|
||||
<CandidateExists<T, I>>::insert(who, true);
|
||||
});
|
||||
|
||||
/// Sorts the `Pool` by score in a descending order. Entities which
|
||||
/// have a score of `None` are sorted to the beginning of the vec.
|
||||
// Sorts the `Pool` by score in a descending order. Entities which
|
||||
// have a score of `None` are sorted to the beginning of the vec.
|
||||
pool.sort_by_key(|(_, maybe_score)|
|
||||
Reverse(maybe_score.unwrap_or_default())
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user