From c92e5aa80eb704dee99b0fc722358926ffc6eb58 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Fri, 30 Nov 2018 11:04:08 +0800 Subject: [PATCH] sender and recipient placeholders added to show_ringmemberstx_jsonhex --- src/page.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/page.h b/src/page.h index b3aa228..ca2b8fa 100644 --- a/src/page.h +++ b/src/page.h @@ -1885,6 +1885,25 @@ show_ringmemberstx_jsonhex(string const& tx_hash_str) tx_json["nettype"] = static_cast(nettype); tx_json["_comment"] = "Just a placeholder for some comment if needed later"; + // add placeholder for sender and recipient details + // this is most useful for unit testing on stagenet/testnet + // private monero networks, so we can easly put these + // networks accounts details here. + tx_json["sender"] = json { + {"seed", ""}, + {"address", ""}, + {"viewkey", ""}, + {"spendkey", ""}, + {"_comment", ""}}; + + tx_json["recipient"] = json { + {"seed", ""}, + {"address", ""}, + {"is_subaddress", false}, + {"viewkey", ""}, + {"spendkey", ""}, + {"_comment", ""}}; + uint64_t tx_blk_height {0}; try