diff options
| author | João Barbosa <[email protected]> | 2020-08-28 12:59:08 +0100 |
|---|---|---|
| committer | João Barbosa <[email protected]> | 2020-08-28 17:01:06 +0100 |
| commit | b35e74ba379bdc12ea6d49a45469f0d6aa74cc27 (patch) | |
| tree | 2f9f21ff4ce708c1a555e83a1126d827949d365d /src/wallet | |
| parent | Merge #19822: chain: Fix CChain comparison UB by removing it (it was unused) (diff) | |
| download | discoin-b35e74ba379bdc12ea6d49a45469f0d6aa74cc27.tar.xz discoin-b35e74ba379bdc12ea6d49a45469f0d6aa74cc27.zip | |
wallet, refactor: Remove duplicate map lookups in GetAddressBalances
Diffstat (limited to 'src/wallet')
| -rw-r--r-- | src/wallet/wallet.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index fa00d1255..0627522ee 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -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; } } |