From 2ec911f60dc89133ffcf91a6deccc2c7ddb434e6 Mon Sep 17 00:00:00 2001 From: Jonas Schnelli Date: Mon, 10 Apr 2017 14:05:49 +0200 Subject: [PATCH] Add cs_wallet lock assertion to SignTransaction() --- src/wallet/wallet.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index ea329d6eb..c4600446a 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2277,6 +2277,8 @@ bool CWallet::SelectCoins(const std::vector& vAvailableCoins, const CAm bool CWallet::SignTransaction(CMutableTransaction &tx) { + AssertLockHeld(cs_wallet); // mapWallet + // sign the new tx CTransaction txNewConst(tx); int nIn = 0;