diff options
author | João Barbosa <joao.paulo.barbosa@gmail.com> | 2019-11-02 16:14:36 +0000 |
---|---|---|
committer | João Barbosa <joao.paulo.barbosa@gmail.com> | 2019-11-02 16:14:36 +0000 |
commit | 01f45dd00eb032a19d142026e4d019944192da19 (patch) | |
tree | e660751e4a97129341181a4cfde3d1aa0d775e42 /src/wallet/wallet.h | |
parent | 463eab5e1418a592036e7bf9bf46f66fe6462435 (diff) | |
download | bitcoin-01f45dd00eb032a19d142026e4d019944192da19.tar.xz |
wallet: Avoid recursive lock in CWallet::SetUsedDestinationState
Diffstat (limited to 'src/wallet/wallet.h')
-rw-r--r-- | src/wallet/wallet.h | 2 |
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; |