Merge pull request #245 from UdjinM6/v0.11.2.x_fix_litemode_consistency

V0.11.2.x fix litemode consistency for anon balance quering
This commit is contained in:
evan82 2015-03-16 07:26:39 -07:00
commit 3c8234853f
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 qint64 WalletModel::getAnonymizedBalance() const
{ {
if(fLiteMode) return 0;
return wallet->GetAnonymizedBalance(); return wallet->GetAnonymizedBalance();
} }

View File

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