oxen-observer/templates/include/checkpoints.html
Jason Rhinelander 84d52cbd42 Fix checkpoint signature/crosses
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.
2020-10-12 19:55:42 -03:00

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%}