We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 698e01e commit 63dc779Copy full SHA for 63dc779
src/wallet/context.h
@@ -38,6 +38,8 @@ using LoadWalletFn = std::function<void(std::unique_ptr<interfaces::Wallet> wall
38
struct WalletContext {
39
interfaces::Chain* chain{nullptr};
40
ArgsManager* args{nullptr}; // Currently a raw pointer because the memory is not managed by this struct
41
+ // It is unsafe to lock this after locking a CWallet::cs_wallet mutex because
42
+ // this could introduce inconsistent lock ordering and cause deadlocks.
43
Mutex wallets_mutex;
44
std::vector<std::shared_ptr<CWallet>> wallets GUARDED_BY(wallets_mutex);
45
std::list<LoadWalletFn> wallet_load_fns GUARDED_BY(wallets_mutex);
0 commit comments