Browse Source

Add missing LOCK2 in CWallet::GetAvailableBalance

0.15
Russell Yanofsky 8 years ago
parent
commit
108f04f2d9
  1. 2
      src/wallet/wallet.cpp

2
src/wallet/wallet.cpp

@ -1986,6 +1986,8 @@ CAmount CWallet::GetLegacyBalance(const isminefilter& filter, int minDepth, cons
CAmount CWallet::GetAvailableBalance(const CCoinControl* coinControl) const CAmount CWallet::GetAvailableBalance(const CCoinControl* coinControl) const
{ {
LOCK2(cs_main, cs_wallet);
CAmount balance = 0; CAmount balance = 0;
std::vector<COutput> vCoins; std::vector<COutput> vCoins;
AvailableCoins(vCoins, true, coinControl); AvailableCoins(vCoins, true, coinControl);

Loading…
Cancel
Save