diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp index 32345ffb06..97c880e574 100644 --- a/src/qt/walletmodel.cpp +++ b/src/qt/walletmodel.cpp @@ -73,7 +73,6 @@ qint64 WalletModel::getBalance(const CCoinControl *coinControl) const qint64 WalletModel::getAnonymizedBalance() const { - if(fLiteMode) return 0; return wallet->GetAnonymizedBalance(); } diff --git a/src/wallet.cpp b/src/wallet.cpp index 3dac121c81..1b4407db9b 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -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);