forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wallet: avoid locking
cs_wallet
throughout Create
's entire scope
Implement portions of f13a22a (bitcoin#22868) to sidestep inconsistent lock order by further scoping `cs_wallet` and exiting that scope before locking `cs_wallet_manager_map` ``` POTENTIAL DEADLOCK DETECTED Previous lock order was: (2) 'walletInstance->cs_wallet' in wallet/wallet.cpp:4932 (in thread 'init') (1) 'm_walletman.cs_wallet_manager_map' in coinjoin/interfaces.cpp:72 (in thread 'init') Current lock order is: (1) 'm_walletman.cs_wallet_manager_map' in coinjoin/interfaces.cpp:72 (in thread 'init') (2) 'cs_wallet' in wallet/wallet.cpp:5530 (in thread 'init') ```
- Loading branch information
Showing
2 changed files
with
5 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters