From 33b544d8d7bdde7cc8b515d82fca9b8c035dd807 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Tue, 28 Aug 2018 13:35:55 +0800 Subject: [PATCH] show_ringmembers_hex modified to use abolute_offsets also --- src/page.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/page.h b/src/page.h index 1e2bbd6..2c45a9d 100644 --- a/src/page.h +++ b/src/page.h @@ -1684,11 +1684,16 @@ show_ringmembers_hex(string const& tx_hash_str) vector input_key_imgs = xmreg::get_key_images(tx); - std::vector all_mixin_outputs; + // key: vector of absolute_offsets, + // value: vector of output_info_of_mixins + std::map, vector> all_mixin_outputs; // make timescale maps for mixins in input for (txin_to_key const& in_key: input_key_imgs) { + + string const& key_image_str = pod_to_hex(in_key.k_image); + // get absolute offsets of mixins std::vector absolute_offsets = cryptonote::relative_output_offsets_to_absolute( @@ -1719,7 +1724,7 @@ show_ringmembers_hex(string const& tx_hash_str) } for (auto const& mo: mixin_outputs) - all_mixin_outputs.emplace_back(pod_to_hex(mo)); + all_mixin_outputs[absolute_offsets].emplace_back(pod_to_hex(mo)); } // for (txin_to_key const& in_key: input_key_imgs)