diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2017-05-04 17:02:12 -0400 |
---|---|---|
committer | Russell Yanofsky <russ@yanofsky.org> | 2017-05-17 05:18:25 -0400 |
commit | 108f04f2d973adac5313c7e4e17a59766a3cc1b6 (patch) | |
tree | 0fcd50216a4422a234aab56205274b371e6605b6 /src/wallet | |
parent | 429aa9eb519b72a79f8bb41d0c4d7d47bcd9dd0d (diff) |
Add missing LOCK2 in CWallet::GetAvailableBalance
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/wallet.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index e62b24cdbc..ca620b5af1 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -1986,6 +1986,8 @@ CAmount CWallet::GetLegacyBalance(const isminefilter& filter, int minDepth, cons CAmount CWallet::GetAvailableBalance(const CCoinControl* coinControl) const { + LOCK2(cs_main, cs_wallet); + CAmount balance = 0; std::vector<COutput> vCoins; AvailableCoins(vCoins, true, coinControl); |