From 8bcbeafb97d4a67b5d8d08695e115a3a9b5e1829 Mon Sep 17 00:00:00 2001 From: jeffro256 Date: Wed, 13 May 2026 14:05:43 -0500 Subject: 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 50bf718d4..48f620a75 100644 --- a/src/wallet/wallet_rpc_server.cpp +++ b/src/wallet/wallet_rpc_server.cpp @@ -1551,12 +1551,13 @@ 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); desc.sources.emplace_back(); wallet_rpc::COMMAND_RPC_DESCRIBE_TRANSFER::source &src_out = desc.sources.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) -- cgit v1.2.3