aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Schnelli <dev@jonasschnelli.ch>2017-04-10 14:05:49 +0200
committerJonas Schnelli <dev@jonasschnelli.ch>2017-05-11 15:27:05 +0200
commit2ec911f60dc89133ffcf91a6deccc2c7ddb434e6 (patch)
treee7ef2c735c64c416a5e7fbe375a5ddeba6cbf43b
parentfbf385cc830df2aec7cdcbab0c2b09b46569e8c1 (diff)
downloadbitcoin-2ec911f60dc89133ffcf91a6deccc2c7ddb434e6.tar.xz
Add cs_wallet lock assertion to SignTransaction()
-rw-r--r--src/wallet/wallet.cpp2
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;