diff options
-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); |