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

Commit

Permalink
Removes incorrect try-state check in staking (#14186)
Browse files Browse the repository at this point in the history
Co-authored-by: parity-processbot <>
  • Loading branch information
gpestana authored Jul 24, 2023
1 parent 7a762e4 commit 763d77c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions frame/staking/src/pallet/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
}

0 comments on commit 763d77c

Please sign in to comment.