lndg/gui/templates/failed_htlcs.html
cryptosharks131 c63c065c6c
v1.3.0 (#120)
2022-08-26 20:56:46 -04:00

43 lines
2.2 KiB
HTML

{% extends "base.html" %}
{% block title %} {{ block.super }} - Failed HTLCs{% endblock %}
{% block content %}
{% load humanize %}
{% if failed_htlcs %}
<div class="w3-container w3-padding-small">
<h2>Last 150 Failed HTLCs</h2>
<table class="w3-table-all w3-centered w3-hoverable">
<tr>
<th>Timestamp</th>
<th>Chan In ID</th>
<th>Chan Out ID</th>
<th>Chan In Alias</th>
<th>Chan Out Alias</th>
<th>Forward Amount</th>
<th>Actual Outbound</th>
<th>Potential Fee</th>
<th>HTLC Failure</th>
<th>Failure Detail</th>
</tr>
{% for failed_htlc in failed_htlcs %}
<tr>
<td title="{{ failed_htlc.timestamp }}">{{ failed_htlc.timestamp|naturaltime }}</td>
<td><a href="/channel?={{ failed_htlc.chan_id_in }}" target="_blank">{{ failed_htlc.chan_id_in }}</a></td>
<td><a href="/channel?={{ failed_htlc.chan_id_out }}" target="_blank">{{ failed_htlc.chan_id_out }}</a></td>
<td>{% if failed_htlc.chan_in_alias == '' %}---{% else %}{{ failed_htlc.chan_in_alias }}{% endif %}</td>
<td>{% if failed_htlc.chan_out_alias == '' %}---{% else %}{{ failed_htlc.chan_out_alias }}{% endif %}</td>
<td>{{ failed_htlc.amount|intcomma }}</td>
<td>{{ failed_htlc.chan_out_liq|intcomma }} ({{ failed_htlc.chan_out_pending|intcomma }})</td>
<td>{{ failed_htlc.missed_fee|intcomma }}</td>
<td>{% if failed_htlc.wire_failure == 15 %}Temporary Channel Failure{% elif failed_htlc.wire_failure == 18 %}Unknown Next Peer{% elif failed_htlc.wire_failure == 12 %}Fee Insufficient{% else %}{{ failed_htlc.wire_failure }}{% endif %}</td>
<td>{% if failed_htlc.failure_detail == 1 %}---{% elif failed_htlc.failure_detail == 5 %}HTLC Exceeds Max{% elif failed_htlc.failure_detail == 6 %}Insufficient Balance{% elif failed_htlc.failure_detail == 13 %}Invoice Not Open{% elif failed_htlc.failure_detail == 20 %}Invalid Keysend{% elif failed_htlc.failure_detail == 22 %}Circular Route{% else %}{{ failed_htlc.failure_detail }}{% endif %}</td>
</tr>
{% endfor %}
</table>
</div>
{% endif %}
{% if not failed_htlcs %}
<div class="w3-container w3-padding-small">
<center><h1>You dont have any failed HTLCs yet.</h1></center>
</div>
{% endif %}
{% endblock %}