do not calculate anonymized balance during initial download or while in lite mode

This commit is contained in:
UdjinM6 2015-02-11 02:50:35 +03:00
parent 4e94fe1d52
commit a948de8009

View File

@ -72,8 +72,8 @@ qint64 WalletModel::getBalance(const CCoinControl *coinControl) const
qint64 WalletModel::getAnonymizedBalance() const qint64 WalletModel::getAnonymizedBalance() const
{ {
qint64 ret = wallet->GetAnonymizedBalance(); if(IsInitialBlockDownload() || fLiteMode) return 0;
return ret; return wallet->GetAnonymizedBalance();
} }
qint64 WalletModel::getUnconfirmedBalance() const qint64 WalletModel::getUnconfirmedBalance() const