Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 3,750 Lines • ▼ Show 20 Lines | for (const auto &walletEntry : mapWallet) { | ||||
if (!ExtractDestination(wtx.tx->vout[i].scriptPubKey, addr)) { | if (!ExtractDestination(wtx.tx->vout[i].scriptPubKey, addr)) { | ||||
continue; | continue; | ||||
} | } | ||||
Amount n = IsSpent(COutPoint(walletEntry.first, i)) | Amount n = IsSpent(COutPoint(walletEntry.first, i)) | ||||
? Amount::zero() | ? Amount::zero() | ||||
: wtx.tx->vout[i].nValue; | : wtx.tx->vout[i].nValue; | ||||
if (!balances.count(addr)) { | |||||
balances[addr] = Amount::zero(); | |||||
} | |||||
balances[addr] += n; | balances[addr] += n; | ||||
} | } | ||||
} | } | ||||
return balances; | return balances; | ||||
} | } | ||||
std::set<std::set<CTxDestination>> CWallet::GetAddressGroupings() const { | std::set<std::set<CTxDestination>> CWallet::GetAddressGroupings() const { | ||||
▲ Show 20 Lines • Show All 1,311 Lines • Show Last 20 Lines |