diff options
| author | tobtoht <tob@featherwallet.org> | 2026-05-19 19:41:02 +0000 |
|---|---|---|
| committer | tobtoht <tob@featherwallet.org> | 2026-05-19 19:41:02 +0000 |
| commit | 61ec6f41f89dd5f0821532c3583b1d2999a2ac56 (patch) | |
| tree | 98a9332499a6384534c2e89da367b84ae8cc7f32 /src | |
| parent | 7bd2a0fda473c9f65e2e649566930f8a3369ade7 (diff) | |
| parent | 8bcbeafb97d4a67b5d8d08695e115a3a9b5e1829 (diff) | |
| download | monzero-core-61ec6f41f89dd5f0821532c3583b1d2999a2ac56.tar.gz monzero-core-61ec6f41f89dd5f0821532c3583b1d2999a2ac56.tar.xz monzero-core-61ec6f41f89dd5f0821532c3583b1d2999a2ac56.zip | |
Merge pull request #10592
8bcbeaf wallet: fix RPC describe transfer source entry (jeffro256)
Diffstat (limited to 'src')
| -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) |
