Add cs_wallet lock assertion to SignTransaction()

This commit is contained in:
Jonas Schnelli committed 2017-05-11 15:27:05 +02:00
1 parent fbf385cc83
commit 2ec911f60d
1 file changed
+2
+2
View File
@@ -2277,6 +2277,8 @@ bool CWallet::SelectCoins(const std::vector<COutput>& vAvailableCoins, const CAm
bool CWallet::SignTransaction(CMutableTransaction &tx) bool CWallet::SignTransaction(CMutableTransaction &tx)
{ {
AssertLockHeld(cs_wallet); // mapWallet
// sign the new tx // sign the new tx
CTransaction txNewConst(tx); CTransaction txNewConst(tx);
int nIn = 0; int nIn = 0;