From 63c2e288bf71ea3cb450d8885886af2f85218cd5 Mon Sep 17 00:00:00 2001 From: Roman Useinov Date: Sun, 18 Sep 2022 14:50:38 +0200 Subject: [PATCH] [Fix] Benchmark issue in staking (#12290) --- substrate/frame/staking/src/pallet/impls.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/substrate/frame/staking/src/pallet/impls.rs b/substrate/frame/staking/src/pallet/impls.rs index f2f9918cb8..62faaaf68e 100644 --- a/substrate/frame/staking/src/pallet/impls.rs +++ b/substrate/frame/staking/src/pallet/impls.rs @@ -1377,6 +1377,11 @@ impl SortedListProvider for UseValidatorsMap { #[allow(deprecated)] Validators::::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