Add missing LOCK2 in CWallet::GetAvailableBalance
This commit is contained in:
parent
429aa9eb51
commit
108f04f2d9
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue