Add cs_wallet lock assertion to SignTransaction()

This commit is contained in:
Jonas Schnelli 2017-04-10 14:05:49 +02:00
parent fbf385cc83
commit 2ec911f60d
No known key found for this signature in database
GPG key ID: 1EB776BB03C7922D

View file

@ -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;