1
0
Fork 0
forked from lthn/blockchain

Merge branch 'release' into develop

This commit is contained in:
sowle 2025-07-18 13:38:36 +03:00
commit 98f5880ae6
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -3907,7 +3907,7 @@ bool wallet2::balance(std::list<wallet_public::asset_balance_entry>& balances, u
//manually added assets should be always present, at least as zero balanced items
for (const auto& [asset_id, custom_asset_entry] : m_custom_assets)
{
if (std::find_if(balances.begin(), balances.end(), [&](wallet_public::asset_balance_entry& e){ return e.asset_info.asset_id == asset_id; }) != balances.end())
if (std::find_if(balances.begin(), balances.end(), [asset_id = asset_id](wallet_public::asset_balance_entry& e){ return e.asset_info.asset_id == asset_id; }) != balances.end())
continue;
wallet_public::asset_balance_entry& new_item = balances.emplace_back();
new_item.asset_info.asset_id = asset_id;