Removes incorrect try-state check in staking (#14186)

Co-authored-by: parity-processbot <>
This commit is contained in:
Gonçalo Pestana
2023-07-24 20:59:44 +02:00
committed by GitHub
parent 53cbda1de6
commit 9ac344e694
@@ -1837,10 +1837,6 @@ impl<T: Config> Pallet<T> {
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(())
}
}