mirror of
https://git.wownero.com/lza_menace/wownero-explorer.git
synced 2024-08-15 01:03:26 +00:00
adding debug, accounting for mined/cb txes
This commit is contained in:
parent
6420022616
commit
6823995510
3 changed files with 13 additions and 3 deletions
|
@ -96,7 +96,8 @@ fn get_transaction_by_hash(tx_hash: String) -> Template {
|
|||
|
||||
let context = json!({
|
||||
"tx_info": res.txs,
|
||||
"tx_hash": tx_hash
|
||||
"tx_hash": tx_hash,
|
||||
"debug": res.clone()
|
||||
});
|
||||
Template::render("transaction", context)
|
||||
}
|
||||
|
|
|
@ -322,3 +322,6 @@ p.subheader {
|
|||
margin: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
.debug {
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
<header>
|
||||
<h3>Transaction Fee</h3>
|
||||
</header>
|
||||
<p>{{ tx_info.0.as_json_full.rct_signatures.txnFee / 1000000000000 | default(value="?") }} WOW</p>
|
||||
<p>{% if tx_info.0.as_json_full.rct_signatures.txnFee / 1000000000000 %}{{ tx_info.0.as_json_full.rct_signatures.txnFee }} WOW{% else %}0 (mined){% endif %}</p>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-4 col-6-medium col-12-small">
|
||||
|
@ -80,7 +80,7 @@
|
|||
</tr>
|
||||
{% for i in tx_info.0.as_json_full.vin %}
|
||||
<tr>
|
||||
<td>{{ i.key.k_image | default(value="?") }}</td>
|
||||
<td>{{ i.key.k_image | default(value="none (mined)") }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
@ -101,6 +101,12 @@
|
|||
{% endif %}
|
||||
</table>
|
||||
</div>
|
||||
<div class="debug">
|
||||
<table>
|
||||
<caption><h2>Debug Output</h2></caption>
|
||||
</table>
|
||||
<p>{{ debug | json_encode() }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
|
Loading…
Reference in a new issue