check fLiteMode on GetAnonymizedBalance in wallet instead of walletmodel

This commit is contained in:
UdjinM6 2015-03-15 21:19:25 +03:00
parent 9b1bc951f2
commit f81d52da1e
2 changed files with 2 additions and 1 deletions

View File

@ -73,7 +73,6 @@ qint64 WalletModel::getBalance(const CCoinControl *coinControl) const
qint64 WalletModel::getAnonymizedBalance() const
{
if(fLiteMode) return 0;
return wallet->GetAnonymizedBalance();
}

View File

@ -1090,6 +1090,8 @@ int64_t CWallet::GetBalance() const
int64_t CWallet::GetAnonymizedBalance() const
{
if(fLiteMode) return 0;
int64_t nTotal = 0;
{
LOCK2(cs_main, cs_wallet);