Files
Jason Rhinelander 5665010003 HF10 updates
- Show batched payout rewards rather than "16.5" which isn't a
  particularly relevant value anymore.
- Add total batched earnings to the index
- Update math for 10 contribution spots
- Update to show HF19 registration details
- Fix bug where the first tx in a no-payout block was not shown on the
  block details page
2022-06-14 20:18:28 -03:00

232 lines
11 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{% extends "_basic.html" %}
{% block content %}
<div class="Wrapper">
<div class="info_list nowrap-spans">
<span><label>Server Time:</label> {{ server.datetime | format_datetime }}</span>
<span><a href="/txpool">Transaction Pool</a></span>
{% if config.pusher %}
<span><a href="/rawtx">Transaction pusher </a></span>
{% endif %}
{% if config.key_image_checker %}
<span><a href="/rawkeyimgs">Key images checker</a></span>
{% endif %}
{% if config.output_key_checker %}
<span><a href="/rawoutputkeys">Output keys checker</a></span>
{% endif %}
{% if config.autorefresh_option %}
<span>
{% if refresh %}
<a href="/">Autorefresh is ON ({{refresh}} s)</a>
{% else %}
<a href="/autorefresh/10">Autorefresh is OFF</a>
{% endif %}
</span>
{% endif %}
{% if info.mainnet and config.lokinet_mainnet_url %}
<span><a href="{{config.lokinet_mainnet_url}}">Connect via Lokinet</a></span>
{% elif info.testnet and config.lokinet_testnet_url %}
<span><a href="{{config.lokinet_testnet_url}}">Connect via Lokinet</a></span>
{% elif info.devnet and config.lokinet_devnet_url %}
<span><a href="{{config.lokinet_devnet_url}}">Connect via Lokinet</a></span>
{% endif %}
{% if config.testnet_url and not info.testnet %}
<span><a href="{{config.testnet_url}}">Go to testnet explorer</a>
{%if config.lokinet_testnet_url%}(<a href="{{config.lokinet_testnet_url}}">via Lokinet</a>){%endif%}
</span>
{% endif %}
{% if config.devnet_url and not info.devnet %}
<span><a href="{{config.devnet_url}}">Go to devnet explorer</a>
{%if config.lokinet_devnet_url%}(<a href="{{config.lokinet_devnet_url}}">via Lokinet</a>){%endif%}
</span>
{% endif %}
{% if config.mainnet_url and not info.mainnet %}
<span><a href="{{config.mainnet_url}}">Go to mainnet explorer</a>
{%if config.lokinet_mainnet_url%}(<a href="{{config.lokinet_mainnet_url}}">via Lokinet</a>){%endif%}
</span>
{% endif %}
{% if info.testnet %}
<span>This is <span style="color:#ff6b62; font-weight: bold">TESTNET</span> blockchain</span>
{% elif info.devnet %}
<span>This is <span style="color:#af5bd2; font-weight: bold">DEVNET</span> blockchain</span>
{% endif %}
</div>
<div class="TitleDivider"></div>
{% if info %}
<h3 class="general_info info_list nowrap-spans">
<span><label>Height:</label> {{info.height}}</span>
<span><label>Hard fork:</label> v{{hf.version}}{%if 'revision' in hf%}.{{hf.revision}}{%endif%}</span>
{% if hf.version >= 16 %}
<span title="{{ info.pulse_target_timestamp | from_timestamp | format_datetime }}
{%-if info.pulse_target_timestamp != info.pulse_ideal_timestamp %}
{{ (info.pulse_target_timestamp - info.pulse_ideal_timestamp) | reltime(two_part=true, in_ago=false) }}
{%-if info.pulse_target_timestamp > info.pulse_ideal_timestamp %} behind {%else%} ahead of {%endif%} schedule
{%-endif-%}
">
<label>Next Pulse:</label> {{(info.pulse_target_timestamp|from_timestamp - server.datetime) | reltime(neg_is_now=true) }}
</span>
{% else %}
<span><label>Network difficulty:</label> {{info.difficulty}}</span>
<span><label>Hash rate:</label> ~{{(info.difficulty / info.target) | si }}H/s</span>
{% endif %}
<span><label>Staking requirement:</label> {{stake.staking_requirement | oxen}}</span>
<span title="{{(2500 * fees.fee_per_byte + 2*fees.fee_per_output) | oxen}} for a typical simple transaction (~2.5kB, 2 outputs)">
<label>Base fee:</label>
{{fees.fee_per_output | oxen}}/output + {{(fees.fee_per_byte * 1000) | oxen}}/kB
</span>
<span title="{{(2500 * fees.blink_fee_per_byte + 2*fees.blink_fee_per_output) | oxen}} for a typical simple blink transaction (~2.5kB, 2 outputs)">
<label>Blink fee:</label>
{{fees.blink_fee_per_output | oxen}}/output + {{(fees.blink_fee_per_byte * 1000) | oxen}}/kB
</span>
<span title="{{(info.block_size_limit / 2) | si}}B soft limit, {{info.block_size_limit | si}}B hard limit. Blocks may include TXes up to the soft limit without penalty and incur increasing reward penalties as they approach the hard limit.">
<label>Block size limit:</label>
{{(info.block_size_limit / 2) | si}}B/{{info.block_size_limit | si}}B
</span>
<span><label>Blockchain size:</label> {{info.database_size | si}}B</span>
</h3>
{% endif %}
<h4 class="info_list nowrap-spans">
<span><label>Circulating Supply*:</label>:
{% if not emission or emission.status == 'BUSY' %}
(still calculating...)</span>
{% elif emission.status == 'OK' %}
{{(emission.emission_amount - emission.burn_amount) | oxen}}</span>
<span title="Gross emitted coins"><label>(Coinbase:</label> {{emission.emission_amount | oxen}}</span>
<span title="Transfers paid as transaction fees"><label>Fees:</label> {{emission.fee_amount | oxen}}</span>
<span title="Permanently destroyed (&quot;burned&quot;) fees"><label>Burned:</label> {{emission.burn_amount | oxen}}</span>
<span title="Accrued batch rewards not yet paid out"><label>Batched:</label> {{accrued_total | oxen}}</span><label>).</label>
{%endif%}
<p style="padding: 0px; margin-top: 2px; font-size: 0.9em">
* — The circulating supply may exclude any currently publicised locked OXEN; otherwise it is equal to the coinbase minus the number of burned coins.
Fees include paid transaction fees minus any portion that was burned.
</p>
</h4>
<div class="TitleDivider"></div>
<h4 class="tx-type-legend info_list nowrap-spans" style="margin-top: 0">
<span><label>TX Type Legend:</label> 🏁 Service Node Registration</span>
<span>⚑ Contribution</span>
<span>👍 Recommission</span>
<span>👎 Decommission</span>
<span>🚫 Deregistration</span>
<span>📋 IP Change Penalty</span>
<span>🔓 Stake Unlock</span>
<span>🎫 Oxen Name System Purchase</span>
<span>💾 ONS Update</span>
</h4>
</div>
{% include 'include/mempool.html' %}
<div class="Wrapper">
<h2>Transactions in
{% if page == 0 %}
the Last {{blocks|length}} Blocks
{% else %}
Blocks {{blocks[0].height}}–{{blocks[-1].height}}
{% endif %}
<a class="linked-icon" href="/range/{{blocks[0].height}}/{{blocks[-1].height}}" title="Permanent link to this block range">🔗</a>
</h2>
{% set block_sizes = blocks | map(attribute='block_size') | sort %}
{%if block_sizes|count > 0%}
<h4 class="Subtitle">(Min. / Median / Average / Max. size of these blocks:
{{block_sizes[0] | si}}B /
{{(block_sizes[(block_sizes|count-1)//2]/2 + block_sizes[(block_sizes|count)//2]/2) | si}}B /
{{(block_sizes|sum / block_sizes|count) | si}}B /
{{block_sizes[-1] | si}}B)
</h4>
{%endif%}
<div class="TitleUnderliner"></div>
{% include 'include/block_page_controls.html' %}
<table class="Table">
<thead>
<tr>
<td>Height</td>
<td>Age [h:m:s]</td>
<td>Size</td>
<td>Type</td>
<td>Transaction Hash</td>
<td>Fee</td>
<td title="Batched reward payments">Rewards</td>
<td>In/Out</td>
<td>TX Size</td>
</tr>
</thead>
<tbody>
{% import 'include/tx_type_symbol.html' as symbol %}
{% import 'include/tx_fee.html' as fee %}
{% for b in blocks | reverse %}
{% set tx_i = 0 %}
{% if b.txs | length > 0 and b.txs[0].coinbase %}
{% set tx_i = 1 %}
<tr class="block">
<td><a href="/block/{{b.height}}">{{b.height}}</a></td>
<td title="{{b.timestamp | from_timestamp | format_datetime}}">{{b.timestamp | from_timestamp | ago}}</td>
<td>{{b.block_size | si}}</td>
<td>{{symbol.display(b.txs[0])}}</td>
<td><a href="/tx/{{b.txs[0].tx_hash}}">{{b.txs[0].tx_hash}}</a></td>
<td>{{fee.display(b.txs[0])}}</td>
<td>{{b.coinbase_payouts | oxen(tag=False, fixed=True, decimals=2)}}</td>
<td>0/{{b.txs[0].info.vout | length}}</td>
<td>{{b.txs[0].size | si}}</td>
</tr>
{% else %}
{# no miner tx, e.g. from batching #}
<tr class="block">
<td><a href="/block/{{b.height}}">{{b.height}}</a></td>
<td title="{{b.timestamp | from_timestamp | format_datetime}}">{{b.timestamp | from_timestamp | ago}}</td>
<td>{{b.block_size | si}}</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
{%endif%}
{% for tx in b.txs[tx_i:] %}
<tr class="tx">
<td></td>
<td></td>
<td></td>
<td>{{symbol.display(tx)}}</td>
<td><a href="/tx/{{tx.tx_hash}}">{{tx.tx_hash}}</a></td>
<td>{{fee.display(tx)}}</td>
<td></td>
<td>{{tx.info.vin | length}}/{{tx.info.vout | length}}</td>
<td>{{tx.size | si}}</td>
</tr>
{% endfor %}
{% endfor %}
</tbody>
</table>
{% include 'include/block_page_controls.html' %}
</div>
{%set limit_awaiting = 10%}
{%set limit_inactive = 10%}
{%set limit_active = 10%}
{%include 'include/service_nodes_lists.html'%}
{%if checkpoints and checkpoints.checkpoints|length > 0%}
{%include 'include/checkpoints.html'%}
{%endif%}
<div class="Wrapper">
<h2> <a href="/quorums">View recent stored testing/checkpoint/blink/pulse quorums</a> </p>
</div>
{% endblock %}