mirror of
https://github.com/oxen-io/oxen-observer.git
synced 2023-12-14 09:22:54 +01:00
84d52cbd42
Signatures were always showing the x marks on the end, rather than at the proper position. Drawing logic should be based on `.voter_index`, not loop index.
1.5 KiB
1.5 KiB
Last {{checkpoints.checkpoints | length}} checkpoints
{%for cp in checkpoints.checkpoints%}Height | Block hash | Checkpoint Quorum |
{{cp.height}} | {{cp.block_hash}} | {{cp.signatures|length}}/20 signatures: {%for sig in cp.signatures%} {%set prev_ind = 0 if loop.index0 == 0 else cp.signatures[loop.index0 - 1].voter_index%} {%for missing in range(prev_ind + 1, sig.voter_index)%} ✕ {%endfor%} ✓ {%endfor%} {%for missing in range(cp.signatures[-1].voter_index + 1, 20)%} ✕ {%endfor%} {%endfor%} |