1
0
Fork 0
forked from lthn/blockchain

fixed bug with inflating balances array

This commit is contained in:
cryptozoidberg 2022-12-01 19:05:17 +01:00
parent 48f4886d0d
commit 11e1836096
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC

View file

@ -3145,6 +3145,7 @@ bool wallet2::balance(std::unordered_map<crypto::hash, wallet_public::asset_bala
bool wallet2::balance(std::list<wallet_public::asset_balance_entry>& balances, uint64_t& mined) const
{
load_whitelisted_tokens_if_not_loaded();
balances.clear();
std::unordered_map<crypto::hash, wallet_public::asset_balance_entry_base> balances_map;
this->balance(balances_map, mined);
for (const auto& item : balances_map)