mirror of
https://github.com/oxen-io/oxen-observer.git
synced 2023-12-14 09:22:54 +01:00
4b27018965
Basic working prototype of most of the first pages (templates brought in from the old explorer but updated for jinja).
1.8 KiB
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 %}
{% if mempool.transactions|length > mempool_limit %}
{% 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 |