Fix Staking and Democracy locking (#3606)

* Fix locking.

* Some reformattings.

* Fix build.

* Fix doc comment.

* Bump.
This commit is contained in:
Kian Paimani
2019-09-13 08:52:52 +02:00
committed by GitHub
parent a6b5d1d155
commit a7f35680b4
6 changed files with 2091 additions and 1886 deletions
+2 -2
View File
@@ -257,7 +257,7 @@ use support::{
StorageValue, StorageMap, StorageLinkedMap, decl_module, decl_event,
decl_storage, ensure, traits::{
Currency, OnFreeBalanceZero, OnDilution, LockIdentifier, LockableCurrency,
WithdrawReasons, WithdrawReason, OnUnbalanced, Imbalance, Get, Time
WithdrawReasons, OnUnbalanced, Imbalance, Get, Time
}
};
use session::{historical::OnSessionEnding, SelectInitialValidators};
@@ -1013,7 +1013,7 @@ impl<T: Trait> Module<T> {
&ledger.stash,
ledger.total,
T::BlockNumber::max_value(),
WithdrawReasons::except(WithdrawReason::TransactionPayment),
WithdrawReasons::all(),
);
<Ledger<T>>::insert(controller, ledger);
}