mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
dont disply "show more" link for mempool txs
This commit is contained in:
parent
736495abc7
commit
7d28eecfcb
1 changed files with 8 additions and 0 deletions
|
@ -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<bool>(tx_context["has_error"]))
|
||||
{
|
||||
return boost::get<string>(tx_context["error_msg"]);
|
||||
|
|
Loading…
Reference in a new issue