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 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; } }