oxen-observer/templates/include/mempool.html
Jason Rhinelander 4b27018965 Initial commit
Basic working prototype of most of the first pages (templates brought in
from the old explorer but updated for jinja).
2020-08-17 22:17:06 -03:00

1.8 KiB

{# Lists mempool transactions. mempool_limit can be set to limit the number of shown transactions; defaults to 25. Set explicitly to none to show all. #} {% if not mempool_limit is defined %}{% set mempool_limit = 25 %} {% elif mempool_limit is none %}{% set mempool_limit = mempool.transactions|length %} {% endif %}

Transaction Pool

{{mempool.transactions|length}} transactions, {{mempool.transactions|sum(attribute='blob_size') | si}}B

{% for tx in mempool.transactions[:mempool_limit] %} {% endfor %}
Age [hⓂ️s] Type Transaction Hash Fee/Per kB In/Out TX Size
{{tx.receive_time | from_timestamp | ago}} {{tx_type_symbol}} {{tx.id_hash}} {{tx.info.vin | length}}/{{tx.info.vout | length}} {{tx.blob_size | si}}B
{% if mempool.transactions|length > mempool_limit %} {% endif %}