wallet, refactor: Remove duplicate map lookups in GetAddressBalances

pull/764/head
João Barbosa 4 years ago
parent 4326515f01
commit b35e74ba37

@ -3372,9 +3372,6 @@ std::map<CTxDestination, CAmount> CWallet::GetAddressBalances() const
continue;
CAmount n = IsSpent(walletEntry.first, i) ? 0 : wtx.tx->vout[i].nValue;
if (!balances.count(addr))
balances[addr] = 0;
balances[addr] += n;
}
}

Loading…
Cancel
Save