resolved indexing error with m_transfers_indices changing from vector to set

This commit is contained in:
Some Random Crypto Guy
2024-10-09 13:41:01 +01:00
parent 6fefb49da0
commit 85c856411e

View File

@@ -11266,9 +11266,9 @@ std::vector<wallet2::pending_tx> wallet2::create_transactions_all(uint64_t below
// gather all dust and non-dust outputs of specified subaddress (if any) and below specified threshold (if any)
bool fund_found = false;
//for (size_t idx = 0; idx < m_transfers_indices[asset_type].size(); idx++)
for (const auto& idx: m_transfers_indices[asset_type])
for (const auto& i: m_transfers_indices[asset_type])
{
size_t i = m_transfers_indices[asset_type][idx];
//size_t i = m_transfers_indices[asset_type][idx];
const transfer_details& td = m_transfers[i];
if (m_ignore_fractional_outputs && td.amount() < fractional_threshold)
{