Skip to content

Commit eb2142d

Browse files
committed
fix: added missing thread annotation for CJWalletManagerImpl
1 parent 40cd08d commit eb2142d

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/coinjoin/walletman.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,19 @@ class CJWalletManagerImpl final : public CJWalletManager
3939

4040
public:
4141
bool hasQueue(const uint256& hash) const override;
42-
CCoinJoinClientManager* getClient(const std::string& name) override;
42+
CCoinJoinClientManager* getClient(const std::string& name) override EXCLUSIVE_LOCKS_REQUIRED(!cs_wallet_manager_map);
4343
MessageProcessingResult processMessage(CNode& peer, CChainState& chainstate, CConnman& connman, CTxMemPool& mempool,
44-
std::string_view msg_type, CDataStream& vRecv) override;
44+
std::string_view msg_type, CDataStream& vRecv) override EXCLUSIVE_LOCKS_REQUIRED(!cs_ProcessDSQueue, !cs_wallet_manager_map);
4545
std::optional<CCoinJoinQueue> getQueueFromHash(const uint256& hash) const override;
4646
std::optional<int> getQueueSize() const override;
47-
std::vector<CDeterministicMNCPtr> getMixingMasternodes() override;
48-
void addWallet(const std::shared_ptr<wallet::CWallet>& wallet) override;
49-
void removeWallet(const std::string& name) override;
50-
void flushWallet(const std::string& name) override;
47+
std::vector<CDeterministicMNCPtr> getMixingMasternodes() override EXCLUSIVE_LOCKS_REQUIRED(!cs_wallet_manager_map);
48+
void addWallet(const std::shared_ptr<wallet::CWallet>& wallet) override EXCLUSIVE_LOCKS_REQUIRED(!cs_wallet_manager_map);
49+
void removeWallet(const std::string& name) override EXCLUSIVE_LOCKS_REQUIRED(!cs_wallet_manager_map);
50+
void flushWallet(const std::string& name) override EXCLUSIVE_LOCKS_REQUIRED(!cs_wallet_manager_map);
5151

5252
protected:
5353
// CValidationInterface
54-
void UpdatedBlockTip(const CBlockIndex* pindexNew, const CBlockIndex* pindexFork, bool fInitialDownload) override;
54+
void UpdatedBlockTip(const CBlockIndex* pindexNew, const CBlockIndex* pindexFork, bool fInitialDownload) override EXCLUSIVE_LOCKS_REQUIRED(!cs_wallet_manager_map);
5555

5656
private:
5757
const bool m_relay_txes;
@@ -75,7 +75,7 @@ class CJWalletManagerImpl final : public CJWalletManager
7575
void DoMaintenance(CConnman& connman) EXCLUSIVE_LOCKS_REQUIRED(!cs_wallet_manager_map);
7676

7777
[[nodiscard]] MessageProcessingResult ProcessDSQueue(NodeId from, CConnman& connman, std::string_view msg_type,
78-
CDataStream& vRecv) EXCLUSIVE_LOCKS_REQUIRED(!cs_ProcessDSQueue);
78+
CDataStream& vRecv) EXCLUSIVE_LOCKS_REQUIRED(!cs_ProcessDSQueue, !cs_wallet_manager_map);
7979

8080
template <typename Callable>
8181
void ForEachCJClientMan(Callable&& func) EXCLUSIVE_LOCKS_REQUIRED(!cs_wallet_manager_map)

0 commit comments

Comments
 (0)