Tip payment is a different withdraw reason. (#3937)

* Tip payment is a different withdraw reason.

* Bump runtime version.

* Test fix.

* Fix lock type
This commit is contained in:
Gavin Wood
2019-10-28 13:04:20 +01:00
committed by GitHub
parent e110cd7ae8
commit ec7655cc7b
11 changed files with 49 additions and 40 deletions
+2 -2
View File
@@ -83,7 +83,7 @@ use srml_support::{
decl_storage, decl_event, ensure, decl_module, dispatch,
traits::{
Currency, Get, LockableCurrency, LockIdentifier, ReservableCurrency, WithdrawReasons,
ChangeMembers, OnUnbalanced,
ChangeMembers, OnUnbalanced, WithdrawReason
}
};
use system::{self, ensure_signed, ensure_root};
@@ -215,7 +215,7 @@ decl_module! {
&who,
locked_balance,
T::BlockNumber::max_value(),
WithdrawReasons::all(),
WithdrawReasons::except(WithdrawReason::TransactionPayment),
);
<StakeOf<T>>::insert(&who, locked_balance);
<VotesOf<T>>::insert(&who, votes);