mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
show tx in json in tx checker for raw tx data only
This commit is contained in:
parent
c532b7f675
commit
158ce6863b
3 changed files with 44 additions and 29 deletions
|
@ -1796,6 +1796,7 @@ public:
|
|||
mixin_timestamps.push_back(blk.timestamp);
|
||||
|
||||
++output_i;
|
||||
|
||||
} // for(const tx_source_entry::output_entry& oe: tx_source.outputs)
|
||||
|
||||
dest_sources.push_back(single_dest_source);
|
||||
|
@ -1908,8 +1909,10 @@ public:
|
|||
// we need this data if we want to use "Decode outputs"
|
||||
// to see which outputs are ours, and decode amounts in ringct txs
|
||||
tx_context["raw_tx_data"] = raw_tx_data;
|
||||
tx_context["show_more_details_link"] = false;
|
||||
|
||||
context["data_prefix"] = string("none as this is pure raw tx data");
|
||||
context["tx_json"] = obj_to_json_str(tx_from_blob);
|
||||
|
||||
context.emplace("txs" , mstch::array{});
|
||||
|
||||
|
@ -3948,6 +3951,7 @@ private:
|
|||
{"has_error" , false},
|
||||
{"error_msg" , string("")},
|
||||
{"have_raw_tx" , false},
|
||||
{"show_more_details_link", true}
|
||||
};
|
||||
|
||||
string server_time_str = xmreg::timestamp_to_str(server_timestamp, "%F");
|
||||
|
|
|
@ -88,6 +88,15 @@
|
|||
{{/dest_infos}}
|
||||
</h5>
|
||||
{{>tx_details}}
|
||||
{{#tx_json}}
|
||||
<br/>
|
||||
<h3>JSON representation of tx</h3>
|
||||
<div class="center">
|
||||
<code style="white-space: pre-wrap; font-size: 10px">
|
||||
{{tx_json}}
|
||||
</code>
|
||||
</div>
|
||||
{{/tx_json}}
|
||||
{{/txs}}
|
||||
|
||||
{{/unsigned_tx_given}}
|
||||
|
|
|
@ -226,7 +226,9 @@
|
|||
|
||||
{{^have_raw_tx}}
|
||||
{{^with_ring_signatures}}
|
||||
{{#show_more_details_link}}
|
||||
<h5 style="margin-top:1px"><a href="/tx/{{tx_hash}}/1">More details</a></h5>
|
||||
{{/show_more_details_link}}
|
||||
{{/with_ring_signatures}}
|
||||
{{#with_ring_signatures}}
|
||||
<h3>JSON representation of tx</h3>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue