oxen-observer/templates/quorums.html
Jason Rhinelander fc90738a0e Add quorum details page
This is completely different from the old one, made much more compact
and usable using the full list of truncated SN pubkeys in flex boxes.
2020-10-11 00:07:20 -03:00

3.8 KiB

{% extends "_basic.html" %} {% block content %}

Service Node testing quorums:

{%for q in quorums.obligation[-18:] | reverse%}

{# quorum height + 13 here because a node only does an obligations test once the node has at least 11 blocks on top of it, which means it is 13 blocks below the blockchain height, which means it has to be (at least) the 12th oldest block, +1 because info.height is the top height + 1 #} Block {{q.height + 13}} {%if q.height + 13 > info.height%} (~{{(q.height + 13 - info.height) * 2}} minutes) {%elif q.height + 13 == info.height%} (testing now!) {%else%} (~{{(info.height - (q.height + 13)) * 2}} minutes ago) {%endif%}

Validators: {%for v in q.quorum.validators%} {{v}} {%endfor%}
SNs to test: {%for w in q.quorum.workers%} {{w}} {%endfor%}
{%endfor%}

Recent pulse quorums:

Current block height: {{info.height}}

{%for q in quorums.pulse[-24:] | reverse%} {%if q.height == info.height%}

Next block

{%else%}

Block {{q.height}}

{%endif%}
Block producer: {%for w in q.quorum.workers%}{#should only be one#} {{w}} {%endfor%}
Validators: {%for v in q.quorum.validators%} {{v}} {%endfor%}
{%endfor%}

Recent checkpoint quorums:

Current block height: {{info.height}}

{%for q in quorums.checkpoint[-12:] | reverse%}

Block {{q.height}}

{%for v in q.quorum.validators%} {{v}} {%endfor%}
{%endfor%}
{% endblock %}