From 62b6f0f21e24ff367d096c80ebdf398de4a98163 Mon Sep 17 00:00:00 2001 From: Russell Yanofsky Date: Fri, 31 Aug 2018 08:11:01 -0400 Subject: [PATCH] Add EXCLUSIVE_LOCKS_REQUIRED to CWallet::ListCoins Suggested by MarcoFalke in https://github.com/bitcoin/bitcoin/pull/10605#issuecomment-417643535 --- src/wallet/wallet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index b85f374a0..c8d5e6a78 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> ListCoins() const; + std::map> ListCoins() const EXCLUSIVE_LOCKS_REQUIRED(cs_main, cs_wallet); /** * Find non-change parent output.