Fix staking (#3284)

* 6 second blocks.

* Version bump

* Add test for slashable_balance()
This commit is contained in:
Gavin Wood
2019-08-01 16:01:22 +02:00
committed by GitHub
parent 17b9ef19c1
commit ae6c2f7f8c
4 changed files with 18 additions and 5 deletions
+1 -1
View File
@@ -1202,7 +1202,7 @@ impl<T: Trait> Module<T> {
}
fn slashable_balance_of(stash: &T::AccountId) -> BalanceOf<T> {
Self::bonded(stash).and_then(Self::ledger).map(|l| l.total).unwrap_or_default()
Self::bonded(stash).and_then(Self::ledger).map(|l| l.active).unwrap_or_default()
}
/// Select a new validator set from the assembled stakers and their role preferences.