mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Add cs_wallet lock assertion to SignTransaction()
This commit is contained in:
parent
fbf385cc83
commit
2ec911f60d
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue