mirror of
https://github.com/lux-tel/session-observer.git
synced 2026-11-07 18:32:01 +00:00
137 lines
5.7 KiB
HTML
137 lines
5.7 KiB
HTML
|
||
{% extends "_basic.html" %}
|
||
|
||
{% block content %}
|
||
|
||
<div class="Wrapper">
|
||
|
||
<h2>Service Node testing quorums:</h2>
|
||
<div class="TitleUnderliner"></div>
|
||
|
||
<div class="obligations quorums">
|
||
{%for q in quorums.obligation[-18:] | reverse%}
|
||
<div{%if q.height + 13 == info.height%} class="now"{%endif%}>
|
||
<h2 title="This testing quorum is determined by block {{q.height}}">
|
||
{# 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%}
|
||
</h2>
|
||
|
||
<div class="validators">
|
||
<label>Validators:</label>
|
||
{%for v in q.quorum.validators%}
|
||
<a class="sn" href="/sn/{{v}}" title="{{v}}">{{v}}</a>
|
||
{%endfor%}
|
||
</div>
|
||
<div class="workers">
|
||
<label>SNs to test:</label>
|
||
{%for w in q.quorum.workers%}
|
||
<a class="sn" href="/sn/{{w}}" title="{{w}}">{{w}}</a>
|
||
{%endfor%}
|
||
</div>
|
||
</div>
|
||
{%endfor%}
|
||
</div>
|
||
|
||
|
||
{%if quorums.pulse%}
|
||
<h2>Recent Pulse quorums:</h2>
|
||
<h4 class="curr-height">Current block height: <span class="omg">{{info.height}}</span></h4>
|
||
<div class="TitleUnderliner"></div>
|
||
|
||
<div class="pulse quorums">
|
||
{%for q in quorums.pulse[-24:] | reverse%}
|
||
{%if q.height == info.height%}
|
||
<div class="now" title="The shows primary pulse block producer and signers. Note that a backup quorum may produce and sign the block instead if the primary quorum takes too long to produce a block.">
|
||
<h2>Next block</h2>
|
||
{%else%}
|
||
<div>
|
||
<h2>Block {{q.height}}</h2>
|
||
{%endif%}
|
||
|
||
<div class="workers">
|
||
<label>Block producer:</label>
|
||
{%for w in q.quorum.workers%}{#should only be one#}
|
||
<a class="sn" href="/sn/{{w}}" title="{{w}}">{{w}}</a>
|
||
{%endfor%}
|
||
</div>
|
||
<div class="validators">
|
||
<label>Validators:</label>
|
||
{%for v in q.quorum.validators%}
|
||
<a class="sn" href="/sn/{{v}}" title="{{v}}">{{v}}</a>
|
||
{%endfor%}
|
||
</div>
|
||
</div>
|
||
{%endfor%}
|
||
</div>
|
||
{%endif%}
|
||
|
||
|
||
<h2>Recent Checkpoint quorums:</h2>
|
||
<h4 class="curr-height">Current block height: <span class="omg">{{info.height}}</span></h4>
|
||
<div class="TitleUnderliner"></div>
|
||
|
||
<div class="checkpoint quorums">
|
||
{%for q in quorums.checkpoint[-12:] | reverse%}
|
||
<div>
|
||
<h2 title="This checkpoint quorum is determined by block {{q.height - 11}}">
|
||
Block {{q.height}}
|
||
</h2>
|
||
|
||
<div class="validators">
|
||
<!--<label>Service Nodes:</label>-->
|
||
{%for v in q.quorum.validators%}
|
||
<a class="sn" href="/sn/{{v}}" title="{{v}}
|
||
Validator {{loop.index}}/{{q.quorum.validators | length}}">{{v}}</a>
|
||
{%endfor%}
|
||
</div>
|
||
</div>
|
||
{%endfor%}
|
||
</div>
|
||
|
||
|
||
<h2>Recent Blink quorums:</h2>
|
||
<h4 class="curr-height">Current block height: <span class="omg">{{info.height}}</span></h4>
|
||
<div class="TitleUnderliner"></div>
|
||
|
||
<div class="blink quorums">
|
||
{# Blink quorums are not fully independent: a blink quorum at height H is subquorum 0 for txes submitted at blockchain height
|
||
[H+35, H+39], and subquorum 1 for txes submitted at height [H+30, H+34]. We want to show the full quorum here for each 5-block
|
||
range, which means each subquorum gets printed twice: as Q0 in one and Q1 in the next one.
|
||
#}
|
||
{%for q in quorums.blink[-9:-1] | reverse%}
|
||
{%set qnext = quorums.blink[-loop.index]%}
|
||
{%set current = q.height + 30 <= info.height <= q.height + 34%}
|
||
<div{%if current%} class="now"{%endif%}>
|
||
<h2 title="Determined by blocks {{q.height}} and {{qnext.height}}">Blocks {{q.height + 30}}–{{q.height + 34}}{%if current%} (current){%endif%}</h2>
|
||
|
||
<div class="validators q0">
|
||
<label title="Subquorum 0; a blink must be approved by at least 7 service nodes from each subquorum">Q₀:</label>
|
||
{%for v in qnext.quorum.validators%}
|
||
<a class="sn" href="/sn/{{v}}" title="{{v}}">{{v}}</a>
|
||
{%endfor%}
|
||
</div>
|
||
<div class="validators q1">
|
||
<label title="Subquorum 1; a blink must be approved by at least 7 service nodes from each subquorum">Q₁:</label>
|
||
{%for v in q.quorum.validators%}
|
||
<a class="sn" href="/sn/{{v}}" title="{{v}}">{{v}}</a>
|
||
{%endfor%}
|
||
</div>
|
||
</div>
|
||
{%endfor%}
|
||
</div>
|
||
|
||
|
||
</div>
|
||
|
||
{% endblock %}
|