1
0
Fork 0
forked from lthn/blockchain

fixed minor bug for ionic swaps

This commit is contained in:
cryptozoidberg 2023-09-11 20:35:45 +02:00
parent 80d8e49b2a
commit db3489a02b
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC

View file

@ -6308,6 +6308,8 @@ bool wallet2::select_indices_for_transfer(assets_selection_context& needed_money
//
for (auto& item : needed_money_map)
{
if(item.second.needed_amount == 0)
continue;
auto asset_cashe_it = m_found_free_amounts.find(item.first);
WLT_THROW_IF_FALSE_WALLET_EX_MES(asset_cashe_it != m_found_free_amounts.end(), error::not_enough_money, "", item.second.found_amount, item.second.needed_amount, 0, item.first);
item.second.found_amount = select_indices_for_transfer(selected_indexes, asset_cashe_it->second, item.second.needed_amount, fake_outputs_count);