You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
131 lines
4.4 KiB
Plaintext
131 lines
4.4 KiB
Plaintext
{% extends "base" %}
|
|
|
|
{% block content %}
|
|
|
|
<section id="main">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<section>
|
|
<header class="major">
|
|
<h2>Network Statistics</h2>
|
|
</header>
|
|
<div class="row">
|
|
<div class="col-3 col-6-medium col-12-small">
|
|
<section class="box">
|
|
<header>
|
|
<h3>Version</h3>
|
|
</header>
|
|
<p>{% if daemon_info.version %}{{ daemon_info.version }}{% else %}?{% endif %}</p>
|
|
</section>
|
|
</div>
|
|
<div class="col-3 col-6-medium col-12-small">
|
|
<section class="box">
|
|
<header>
|
|
<h3>Difficulty</h3>
|
|
</header>
|
|
<p>{{ daemon_info.difficulty }}</p>
|
|
</section>
|
|
</div>
|
|
<div class="col-3 col-6-medium col-12-small">
|
|
<section class="box">
|
|
<header>
|
|
<h3>Height</h3>
|
|
</header>
|
|
<p>{{ daemon_info.height }}</p>
|
|
</section>
|
|
</div>
|
|
<div class="col-3 col-6-medium col-12-small">
|
|
<section class="box">
|
|
<header>
|
|
<h3>Network</h3>
|
|
</header>
|
|
<p>{{ daemon_info.nettype }}</p>
|
|
</section>
|
|
</div>
|
|
<div class="col-3 col-6-medium col-12-small">
|
|
<section class="box">
|
|
<header>
|
|
<h3>Transaction Count</h3>
|
|
</header>
|
|
<p>{{ daemon_info.tx_count }}</p>
|
|
</section>
|
|
</div>
|
|
<div class="col-3 col-6-medium col-12-small">
|
|
<section class="box">
|
|
<header>
|
|
<h3>Database Size</h3>
|
|
</header>
|
|
<p>{% if daemon_info.database_size %}{{ daemon_info.database_size / 1000000000 }} GB{% else %}?{% endif %}</p>
|
|
</section>
|
|
</div>
|
|
<div class="col-3 col-6-medium col-12-small">
|
|
<section class="box">
|
|
<header>
|
|
<h3>Connections</h3>
|
|
</header>
|
|
<p>{{ daemon_info.incoming_connections_count }} in / {{ daemon_info.outgoing_connections_count }} out</p>
|
|
</section>
|
|
</div>
|
|
<div class="col-3 col-6-medium col-12-small">
|
|
<section class="box">
|
|
<header>
|
|
<h3>Status</h3>
|
|
</header>
|
|
<p>{{ daemon_info.status }}</p>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
<br><br>
|
|
<header class="major">
|
|
<div class="tx-table">
|
|
<table>
|
|
<caption>
|
|
<h2>Transaction Pool ({{ daemon_info.tx_pool_size }})</h2>
|
|
<p>Transactions that have yet to be mined into a block. This is where payments sit in a PENDING state.</p>
|
|
</caption>
|
|
<tr>
|
|
<th>Hash</th>
|
|
<th>Amount</th>
|
|
<th>Fee</th>
|
|
</tr>
|
|
{% for tx in tx_json %}
|
|
|
|
<p>Ring Sig Type: {{ tx.rct_signatures.type }}</p>
|
|
<p>Tx Fee: {{ tx.rct_signatures.txnFee }}</p>
|
|
<p>Extra: {{ tx.extra }}</p>
|
|
<h1>Tx Inputs</h1>
|
|
{{ tx.vin | length }}
|
|
{% for vin in tx.vin %}
|
|
<p>Amount: {{ vin.key.amount / 1000000000000 }} XMR</p>
|
|
<p>Key Image: {{ vin.key.k_image }}</p>
|
|
<p>Key Offsets: {{ vin.key.key_offsets }}</p>
|
|
{% endfor %}
|
|
<h1>Tx Outputs</h1>
|
|
{% for vout in tx.vout %}
|
|
<p>Amount: {{ vout.amount / 1000000000000 }} XMR</p>
|
|
<p>Stealth Address: {{ vout.target.key }}</p>
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
{% comment %}
|
|
{% for tx in tx_pool %}
|
|
<tr>
|
|
<td>{{ tx.id_hash | truncate(length=8) }}</td>
|
|
<td>?</td>
|
|
<td>{{ tx.fee / 1000000000000 }} XMR</td>
|
|
</tr>
|
|
{% endfor %}
|
|
{% endcomment %}
|
|
</table>
|
|
</div>
|
|
</header>
|
|
</div>
|
|
</section>
|
|
|
|
{% endblock content %}
|