aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authorJoão Barbosa <joao.paulo.barbosa@gmail.com>2020-08-28 12:59:08 +0100
committerJoão Barbosa <joao.paulo.barbosa@gmail.com>2020-08-28 17:01:06 +0100
commitb35e74ba379bdc12ea6d49a45469f0d6aa74cc27 (patch)
tree2f9f21ff4ce708c1a555e83a1126d827949d365d /src/wallet
parent4326515f01d7938bb448e7a9338dcc9c98497847 (diff)
downloadbitcoin-b35e74ba379bdc12ea6d49a45469f0d6aa74cc27.tar.xz
wallet, refactor: Remove duplicate map lookups in GetAddressBalances
Diffstat (limited to 'src/wallet')
-rw-r--r--src/wallet/wallet.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp
index fa00d12551..0627522eea 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;
}
}