From 7d28eecfcb8b6f972a670bec8fc0b970444f04f3 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Thu, 16 Feb 2017 23:37:25 +0000 Subject: [PATCH] dont disply "show more" link for mempool txs --- src/page.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/page.h b/src/page.h index 215b555..af4cf8e 100644 --- a/src/page.h +++ b/src/page.h @@ -843,6 +843,8 @@ public: // get transaction transaction tx; + bool show_more_details_link {true}; + if (!mcore->get_tx(tx_hash, tx)) { cerr << "Cant get tx in blockchain: " << tx_hash @@ -866,6 +868,10 @@ public: age = get_age(server_timestamp, tx_recieve_timestamp, FULL_AGE_FORMAT); + + // for mempool tx, we dont show more details, e.g., json tx representation + // so no need for the link + show_more_details_link = false; } else { @@ -876,6 +882,8 @@ public: mstch::map tx_context = construct_tx_context(tx, with_ring_signatures); + tx_context["show_more_details_link"] = show_more_details_link; + if (boost::get(tx_context["has_error"])) { return boost::get(tx_context["error_msg"]);