aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.h
diff options
context:
space:
mode:
authorJoão Barbosa <joao.paulo.barbosa@gmail.com>2019-11-02 16:14:36 +0000
committerJoão Barbosa <joao.paulo.barbosa@gmail.com>2019-11-02 16:14:36 +0000
commit01f45dd00eb032a19d142026e4d019944192da19 (patch)
treee660751e4a97129341181a4cfde3d1aa0d775e42 /src/wallet/wallet.h
parent463eab5e1418a592036e7bf9bf46f66fe6462435 (diff)
downloadbitcoin-01f45dd00eb032a19d142026e4d019944192da19.tar.xz
wallet: Avoid recursive lock in CWallet::SetUsedDestinationState
Diffstat (limited to 'src/wallet/wallet.h')
-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 f3b791441c..64c2293922 100644
--- a/src/wallet/wallet.h
+++ b/src/wallet/wallet.h
@@ -795,7 +795,7 @@ public:
// Whether this or any UTXO with the same CTxDestination has been spent.
bool IsUsedDestination(const CTxDestination& dst) const;
bool IsUsedDestination(const uint256& hash, unsigned int n) const;
- void SetUsedDestinationState(const uint256& hash, unsigned int n, bool used);
+ void SetUsedDestinationState(const uint256& hash, unsigned int n, bool used) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
std::vector<OutputGroup> GroupOutputs(const std::vector<COutput>& outputs, bool single_coin) const;