Skip to content

Commit 3ddc150

Browse files
committed
Add missed thread safety annotations
This is needed for upcoming commit "sync.h: Make runtime lock checks require compile-time lock checks" to pass.
1 parent af9ea55 commit 3ddc150

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/wallet/scriptpubkeyman.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ class DescriptorScriptPubKeyMan : public ScriptPubKeyMan
535535
//! keeps track of whether Unlock has run a thorough check before
536536
bool m_decryption_thoroughly_checked = false;
537537

538-
bool AddDescriptorKeyWithDB(WalletBatch& batch, const CKey& key, const CPubKey &pubkey);
538+
bool AddDescriptorKeyWithDB(WalletBatch& batch, const CKey& key, const CPubKey &pubkey) EXCLUSIVE_LOCKS_REQUIRED(cs_desc_man);
539539

540540
KeyMap GetKeys() const EXCLUSIVE_LOCKS_REQUIRED(cs_desc_man);
541541

src/wallet/wallet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1285,7 +1285,7 @@ class CWallet final : public WalletStorage, public interfaces::Chain::Notificati
12851285
void LoadActiveScriptPubKeyMan(uint256 id, OutputType type, bool internal);
12861286

12871287
//! Create new DescriptorScriptPubKeyMans and add them to the wallet
1288-
void SetupDescriptorScriptPubKeyMans();
1288+
void SetupDescriptorScriptPubKeyMans() EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
12891289

12901290
//! Return the DescriptorScriptPubKeyMan for a WalletDescriptor if it is already in the wallet
12911291
DescriptorScriptPubKeyMan* GetDescriptorScriptPubKeyMan(const WalletDescriptor& desc) const;

0 commit comments

Comments
 (0)