Skip to content

Commit

Permalink
[Fix] Benchmark issue in staking (paritytech#12290)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruseinov authored and ark0f committed Feb 27, 2023
1 parent 3b6bdd4 commit 6d092f9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frame/staking/src/pallet/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1377,6 +1377,11 @@ impl<T: Config> SortedListProvider<T::AccountId> for UseValidatorsMap<T> {
#[allow(deprecated)]
Validators::<T>::remove_all();
}

#[cfg(feature = "runtime-benchmarks")]
fn score_update_worst_case(_who: &T::AccountId, _is_increase: bool) -> Self::Score {
unimplemented!()
}
}

/// A simple voter list implementation that does not require any additional pallets. Note, this
Expand Down

0 comments on commit 6d092f9

Please sign in to comment.