Skip to content

Commit 62b6f0f

Browse files
committed
Add EXCLUSIVE_LOCKS_REQUIRED to CWallet::ListCoins
Suggested by MarcoFalke <[email protected]> in bitcoin/bitcoin#10605 (comment)
1 parent 545e85e commit 62b6f0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/wallet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ class CWallet final : public CCryptoKeyStore, public CValidationInterface
821821
/**
822822
* Return list of available coins and locked coins grouped by non-change output address.
823823
*/
824-
std::map<CTxDestination, std::vector<COutput>> ListCoins() const;
824+
std::map<CTxDestination, std::vector<COutput>> ListCoins() const EXCLUSIVE_LOCKS_REQUIRED(cs_main, cs_wallet);
825825

826826
/**
827827
* Find non-change parent output.

0 commit comments

Comments
 (0)