mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
add amount and payment id to show_ringmemberstx_jsonhex
This commit is contained in:
parent
1f57765957
commit
f57118e378
1 changed files with 20 additions and 7 deletions
19
src/page.h
19
src/page.h
|
@ -1894,15 +1894,22 @@ show_ringmemberstx_jsonhex(string const& tx_hash_str)
|
||||||
{"address", ""},
|
{"address", ""},
|
||||||
{"viewkey", ""},
|
{"viewkey", ""},
|
||||||
{"spendkey", ""},
|
{"spendkey", ""},
|
||||||
|
{"amount", 0ull},
|
||||||
|
{"change", 0ull},
|
||||||
{"_comment", ""}};
|
{"_comment", ""}};
|
||||||
|
|
||||||
tx_json["recipient"] = json {
|
tx_json["recipient"] = json::array();
|
||||||
{"seed", ""},
|
|
||||||
|
|
||||||
|
tx_json["recipient"].push_back(
|
||||||
|
json { {"seed", ""},
|
||||||
{"address", ""},
|
{"address", ""},
|
||||||
{"is_subaddress", false},
|
{"is_subaddress", false},
|
||||||
{"viewkey", ""},
|
{"viewkey", ""},
|
||||||
{"spendkey", ""},
|
{"spendkey", ""},
|
||||||
{"_comment", ""}};
|
{"amount", 0ull},
|
||||||
|
{"_comment", ""}});
|
||||||
|
|
||||||
|
|
||||||
uint64_t tx_blk_height {0};
|
uint64_t tx_blk_height {0};
|
||||||
|
|
||||||
|
@ -1944,6 +1951,12 @@ show_ringmemberstx_jsonhex(string const& tx_hash_str)
|
||||||
return json {"error", "Failed to obtain complete block data"};
|
return json {"error", "Failed to obtain complete block data"};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tx_details txd = get_tx_details(tx);
|
||||||
|
|
||||||
|
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["block"] = epee::string_tools
|
tx_json["block"] = epee::string_tools
|
||||||
::buff_to_hex_nodelimer(complete_block_data_str);
|
::buff_to_hex_nodelimer(complete_block_data_str);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue