[Fix] Benchmark issue in staking (#12290)

This commit is contained in:
Roman Useinov
2022-09-18 14:50:38 +02:00
committed by GitHub
parent 1b24f562e6
commit 63c2e288bf
@@ -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