block info added

This commit is contained in:
moneroexamples 2018-11-30 11:58:57 +08:00
parent a61e35d4a2
commit 05f032ee36

View file

@ -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<size_t>(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();