check fLiteMode on GetAnonymizedBalance in wallet instead of walletmodel
This commit is contained in:
parent
9b1bc951f2
commit
f81d52da1e
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user