diff options
| author | jeffro256 <jeffro256@tutanota.com> | 2026-05-13 14:05:43 -0500 |
|---|---|---|
| committer | jeffro256 <jeffro256@tutanota.com> | 2026-05-13 14:09:29 -0500 |
| commit | 8bcbeafb97d4a67b5d8d08695e115a3a9b5e1829 (patch) | |
| tree | f3370ddc61e1204518952d8911f0265fd517a1fe | |
| parent | 12c8ccf57fefceac40a10966fb5f0905830e7402 (diff) | |
| download | monzero-core-8bcbeafb97d4a67b5d8d08695e115a3a9b5e1829.tar.gz monzero-core-8bcbeafb97d4a67b5d8d08695e115a3a9b5e1829.tar.xz monzero-core-8bcbeafb97d4a67b5d8d08695e115a3a9b5e1829.zip | |
wallet: fix RPC describe transfer source entry
| -rw-r--r-- | src/wallet/wallet_rpc_server.cpp | 5 |
1 files 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) |
