Skip to content

Commit 2ec911f

Browse files
committed
Add cs_wallet lock assertion to SignTransaction()
1 parent fbf385c commit 2ec911f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/wallet/wallet.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2277,6 +2277,8 @@ bool CWallet::SelectCoins(const std::vector<COutput>& vAvailableCoins, const CAm
22772277

22782278
bool CWallet::SignTransaction(CMutableTransaction &tx)
22792279
{
2280+
AssertLockHeld(cs_wallet); // mapWallet
2281+
22802282
// sign the new tx
22812283
CTransaction txNewConst(tx);
22822284
int nIn = 0;

0 commit comments

Comments
 (0)