Sort active nodes by last uptime proof.

Since HF19, there is no longer a concept of a per node reward height, so
we need a new sort criterion for active nodes. I believe the most
interesting sort is that by most recent uptime proof.

At the top of the list will appear nodes whose proof is overdue
(i.e. > 1:00:00 ago). This should never be more than a few seconds, so
one can see at a glance any nodes that are ripe for being moved to the
Inactive/Decommissioned Service Nodes section the next time they are
tested by the network. This also makes the list much more dynamic to
watch.

Since the Last Reward Height column is now redundant, we can replace it
with something more interesting, such as the Active Since Height.
This commit is contained in:
Ian Macdonald 2022-06-30 10:41:34 +02:00
parent 07182822c8
commit 3feca6d743
No known key found for this signature in database
GPG Key ID: AE4C20556BA626FA
1 changed files with 3 additions and 3 deletions

View File

@ -5,19 +5,19 @@
<td>Contri&shy;butors</td>
<td>Operator Fee (%)</td>
<td>Staking Requirement</td>
<td title="Can also be the height of the last activation, IP penalty, or recommission">Last Reward Height</td>
<td title="Can also be the height of the last IP penalty or recommission">Active Since Height</td>
<td>Last Uptime Proof</td>
<td>Expiry Date UTC (Estimated)</td>
</tr>
</thead>
<tbody>
{%for sn in (active_sns | sort(attribute='last_reward_block_height,last_reward_transaction_index,service_node_pubkey'))[:limit_active]%}
{%for sn in (active_sns | sort(attribute='last_uptime_proof,service_node_pubkey'))[:limit_active]%}
<tr>
{%include 'include/sn_kcf.html'%}
<td>{{sn.staking_requirement | oxen(tag=false, fixed=true)}}</td>
<td>{{sn.last_reward_block_height}}</td>
<td>{{sn.state_height}}</td>
<td>{{sn.last_uptime_proof | from_timestamp | ago if sn.last_uptime_proof > 0 else "Not Received"}}</td>
<td>
{%if sn.requested_unlock_height%}