Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 763d77c

Browse files
authored
Removes incorrect try-state check in staking (#14186)
Co-authored-by: parity-processbot <>
1 parent 7a762e4 commit 763d77c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

frame/staking/src/pallet/impls.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1837,10 +1837,6 @@ impl<T: Config> Pallet<T> {
18371837
ledger.unlocking.iter().fold(ledger.active, |a, c| a + c.value);
18381838
ensure!(real_total == ledger.total, "ledger.total corrupt");
18391839

1840-
if !(ledger.active >= T::Currency::minimum_balance() || ledger.active.is_zero()) {
1841-
log!(warn, "ledger.active less than ED: {:?}, {:?}", ctrl, ledger)
1842-
}
1843-
18441840
Ok(())
18451841
}
18461842
}

0 commit comments

Comments
 (0)