Skip to content

Commit b35e74b

Browse files
committed
wallet, refactor: Remove duplicate map lookups in GetAddressBalances
1 parent 4326515 commit b35e74b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/wallet/wallet.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3372,9 +3372,6 @@ std::map<CTxDestination, CAmount> CWallet::GetAddressBalances() const
33723372
continue;
33733373

33743374
CAmount n = IsSpent(walletEntry.first, i) ? 0 : wtx.tx->vout[i].nValue;
3375-
3376-
if (!balances.count(addr))
3377-
balances[addr] = 0;
33783375
balances[addr] += n;
33793376
}
33803377
}

0 commit comments

Comments
 (0)