Sensible locking for staking and council. (#3050)

* Sensible locking for staking and council.

* Bump.
This commit is contained in:
Kian Peymani
2019-07-10 20:03:14 +02:00
committed by Gavin Wood
parent ddfc761dbf
commit 814b9056b3
5 changed files with 61 additions and 11 deletions
+9
View File
@@ -630,6 +630,15 @@ bitmask! {
}
}
impl WithdrawReasons {
/// Choose all variants except for `one`.
pub fn except(one: WithdrawReason) -> WithdrawReasons {
let mut mask = Self::all();
mask.toggle(one);
mask
}
}
/// Trait for type that can handle incremental changes to a set of account IDs.
pub trait ChangeMembers<AccountId> {
/// A number of members `_incoming` just joined the set and replaced some `_outgoing` ones. The