From 123e33d34a7d67a0c9c70d0d53b6fae3fc676534 Mon Sep 17 00:00:00 2001 From: jeffro256 Date: Wed, 13 May 2026 14:05:43 -0500 Subject: [PATCH] wallet: fix RPC describe transfer source entry --- src/wallet/wallet_rpc_server.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp index f19e6457e..7f9affaa7 100644 --- a/src/wallet/wallet_rpc_server.cpp +++ b/src/wallet/wallet_rpc_server.cpp @@ -1564,11 +1564,12 @@ namespace tools for (size_t s = 0; s < cd.sources.size(); ++s) { const cryptonote::tx_source_entry &src_in = cd.sources[s]; + const cryptonote::tx_source_entry::output_entry &real_ring_member = src_in.outputs.at(src_in.real_output); wallet_rpc::COMMAND_RPC_DESCRIBE_TRANSFER::source &src_out = desc.sources.emplace_back(); src_out.amount = src_in.amount; - src_out.global_index = src_in.outputs.at(src_in.real_output_in_tx_index).first; + src_out.global_index = real_ring_member.first; src_out.rct = src_in.rct; - src_out.pubkey = epee::string_tools::pod_to_hex(src_in.outputs.at(src_in.real_output_in_tx_index).second); + src_out.pubkey = epee::string_tools::pod_to_hex(real_ring_member.second); desc.amount_in += src_in.amount; size_t ring_size = src_in.outputs.size(); if (ring_size < desc.ring_size)