From 9ac344e694539fc33a039f9268f8648e8c9ecf7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Pestana?= Date: Mon, 24 Jul 2023 20:59:44 +0200 Subject: [PATCH] Removes incorrect try-state check in staking (#14186) Co-authored-by: parity-processbot <> --- substrate/frame/staking/src/pallet/impls.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/substrate/frame/staking/src/pallet/impls.rs b/substrate/frame/staking/src/pallet/impls.rs index 0e8c98cab2..052ba80161 100644 --- a/substrate/frame/staking/src/pallet/impls.rs +++ b/substrate/frame/staking/src/pallet/impls.rs @@ -1837,10 +1837,6 @@ impl Pallet { ledger.unlocking.iter().fold(ledger.active, |a, c| a + c.value); ensure!(real_total == ledger.total, "ledger.total corrupt"); - if !(ledger.active >= T::Currency::minimum_balance() || ledger.active.is_zero()) { - log!(warn, "ledger.active less than ED: {:?}, {:?}", ctrl, ledger) - } - Ok(()) } }