diff options
author | Jonas Schnelli <dev@jonasschnelli.ch> | 2017-04-10 14:05:49 +0200 |
---|---|---|
committer | Jonas Schnelli <dev@jonasschnelli.ch> | 2017-05-11 15:27:05 +0200 |
commit | 2ec911f60dc89133ffcf91a6deccc2c7ddb434e6 (patch) | |
tree | e7ef2c735c64c416a5e7fbe375a5ddeba6cbf43b /src/wallet | |
parent | fbf385cc830df2aec7cdcbab0c2b09b46569e8c1 (diff) |
Add cs_wallet lock assertion to SignTransaction()
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/wallet.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index ea329d6ebe..c4600446a8 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2277,6 +2277,8 @@ bool CWallet::SelectCoins(const std::vector<COutput>& vAvailableCoins, const CAm bool CWallet::SignTransaction(CMutableTransaction &tx) { + AssertLockHeld(cs_wallet); // mapWallet + // sign the new tx CTransaction txNewConst(tx); int nIn = 0; |