From 85c856411e922cde8e642ab5e4fd4d73a4403506 Mon Sep 17 00:00:00 2001 From: Some Random Crypto Guy Date: Wed, 9 Oct 2024 13:41:01 +0100 Subject: [PATCH] resolved indexing error with m_transfers_indices changing from vector to set --- src/wallet/wallet2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 84d9fa4..5927156 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -11266,9 +11266,9 @@ std::vector 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) {