From 3797ae2e32bc90b8127f9eb0707bc45bfe06a3ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Pestana?= Date: Mon, 22 May 2023 10:25:48 +0200 Subject: [PATCH] Removes incorrect try-state check in staking --- frame/staking/src/pallet/impls.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/frame/staking/src/pallet/impls.rs b/frame/staking/src/pallet/impls.rs index 82a0956da7b61..5be732605f662 100644 --- a/frame/staking/src/pallet/impls.rs +++ b/frame/staking/src/pallet/impls.rs @@ -1818,10 +1818,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(()) } }