pallet-nomination-pools: Enable function for fuzzing feature as well (#2711)

The function is called by `do_try_state` which is also enabled for the
`fuzzing` feature.

---------

Co-authored-by: command-bot <>
This commit is contained in:
Bastian Köcher
2023-12-14 22:51:07 +01:00
committed by GitHub
parent c1a11b7325
commit 6dece52e9d
+7 -1
View File
@@ -3467,7 +3467,13 @@ impl<T: Config> Pallet<T> {
/// Check if any pool have an incorrect amount of ED frozen.
///
/// This can happen if the ED has changed since the pool was created.
#[cfg(any(feature = "try-runtime", feature = "runtime-benchmarks", test, debug_assertions))]
#[cfg(any(
feature = "try-runtime",
feature = "runtime-benchmarks",
feature = "fuzzing",
test,
debug_assertions
))]
pub fn check_ed_imbalance() -> Result<(), DispatchError> {
let mut failed: u32 = 0;
BondedPools::<T>::iter_keys().for_each(|id| {