mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 20:03:34 -03:00
wallet, refactor: Remove duplicate map lookups in GetAddressBalances
This commit is contained in:
parent
4326515f01
commit
b35e74ba37
1 changed files with 0 additions and 3 deletions
|
@ -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…
Reference in a new issue