Skip to content

Commit

Permalink
Add EXCLUSIVE_LOCKS_REQUIRED to CWallet::ListCoins
Browse files Browse the repository at this point in the history
Suggested by MarcoFalke <falke.marco@gmail.com> in
bitcoin#10605 (comment)
  • Loading branch information
ryanofsky committed Aug 31, 2018
1 parent 545e85e commit 62b6f0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/wallet.h
Expand Up @@ -821,7 +821,7 @@ class CWallet final : public CCryptoKeyStore, public CValidationInterface
/**
* Return list of available coins and locked coins grouped by non-change output address.
*/
std::map<CTxDestination, std::vector<COutput>> ListCoins() const;
std::map<CTxDestination, std::vector<COutput>> ListCoins() const EXCLUSIVE_LOCKS_REQUIRED(cs_main, cs_wallet);

/**
* Find non-change parent output.
Expand Down

0 comments on commit 62b6f0f

Please sign in to comment.