aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRussell Yanofsky <russ@yanofsky.org>2018-08-31 08:11:01 -0400
committerRussell Yanofsky <russ@yanofsky.org>2018-08-31 08:11:01 -0400
commit62b6f0f21e24ff367d096c80ebdf398de4a98163 (patch)
treed14dbaefecf3a9cd8a0f17f591d440947daaf777 /src
parent545e85eccc2441c6d7745bb90d88dc14718455a2 (diff)
downloadbitcoin-62b6f0f21e24ff367d096c80ebdf398de4a98163.tar.xz
Add EXCLUSIVE_LOCKS_REQUIRED to CWallet::ListCoins
Suggested by MarcoFalke <falke.marco@gmail.com> in https://github.com/bitcoin/bitcoin/pull/10605#issuecomment-417643535
Diffstat (limited to 'src')
-rw-r--r--src/wallet/wallet.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h
index b85f374a06..c8d5e6a781 100644
--- a/src/wallet/wallet.h
+++ b/src/wallet/wallet.h
@@ -821,7 +821,7 @@ public:
/**
* 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.