From a654ce9ea7ce48c1691c86ef751b39724fd95c84 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Tue, 4 Dec 2018 10:12:17 +0800 Subject: [PATCH] Use zeros as default value for payment_id8e --- src/page.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/page.h b/src/page.h index c7d2486..269d974 100644 --- a/src/page.h +++ b/src/page.h @@ -1970,7 +1970,7 @@ show_ringmemberstx_jsonhex(string const& tx_hash_str) tx_json["payment_id"] = pod_to_hex(txd.payment_id); tx_json["payment_id8"] = pod_to_hex(txd.payment_id8); - tx_json["payment_id8e"] = "placeholder for decrypted value"; + tx_json["payment_id8e"] = pod_to_hex(txd.payment_id8); tx_json["block"] = epee::string_tools ::buff_to_hex_nodelimer(complete_block_data_str); @@ -2406,8 +2406,11 @@ show_my_outputs(string tx_hash_str, address_info.address.m_spend_public_key, tx_pubkey); - //cout << pod_to_hex(outp.first.key) << endl; - //cout << pod_to_hex(tx_pubkey) << endl; +// cout << pod_to_hex(derivation) << ", " << output_idx << ", " +// << pod_to_hex(address_info.address.m_spend_public_key) << ", " +// << pod_to_hex(outp.first.key) << " == " +// << pod_to_hex(tx_pubkey) << '\n' << '\n'; + // check if generated public key matches the current output's key bool mine_output = (outp.first.key == tx_pubkey); @@ -2422,6 +2425,7 @@ show_my_outputs(string tx_hash_str, address_info.address.m_spend_public_key, tx_pubkey); + mine_output = (outp.first.key == tx_pubkey); with_additional = true;