From 05f032ee362ca9b672f854299049a6541d6fb383 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Fri, 30 Nov 2018 11:58:57 +0800 Subject: [PATCH] block info added --- src/page.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/page.h b/src/page.h index eb8b2c2..be28e61 100644 --- a/src/page.h +++ b/src/page.h @@ -1883,6 +1883,9 @@ show_ringmemberstx_jsonhex(string const& tx_hash_str) tx_json["hash"] = tx_hash_str; tx_json["hex"] = tx_hex; tx_json["nettype"] = static_cast(nettype); + tx_json["is_ringct"] = (tx.version > 1); + tx_json["rct_type"] = tx.rct_signatures.type; + tx_json["_comment"] = "Just a placeholder for some comment if needed later"; // add placeholder for sender and recipient details @@ -1960,6 +1963,7 @@ show_ringmemberstx_jsonhex(string const& tx_hash_str) tx_json["block"] = epee::string_tools ::buff_to_hex_nodelimer(complete_block_data_str); + tx_json["block_version"] = json {blk.major_version, blk.minor_version}; tx_json["inputs"] = json::array();