Skip to content

Commit 108f04f

Browse files
committed
Add missing LOCK2 in CWallet::GetAvailableBalance
1 parent 429aa9e commit 108f04f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/wallet/wallet.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1986,6 +1986,8 @@ CAmount CWallet::GetLegacyBalance(const isminefilter& filter, int minDepth, cons
19861986

19871987
CAmount CWallet::GetAvailableBalance(const CCoinControl* coinControl) const
19881988
{
1989+
LOCK2(cs_main, cs_wallet);
1990+
19891991
CAmount balance = 0;
19901992
std::vector<COutput> vCoins;
19911993
AvailableCoins(vCoins, true, coinControl);

0 commit comments

Comments
 (0)