Add swarm_id to SN details

This commit is contained in:
Jason Rhinelander 2021-04-21 19:06:48 -03:00
parent afc31a7f1b
commit 77b7617ab7
2 changed files with 7 additions and 1 deletions

View File

@ -179,7 +179,7 @@ def get_sns_future(lmq, oxend):
'last_reward_transaction_index', 'active', 'funded', 'earned_downtime_blocks',
'service_node_version', 'contributors', 'total_contributed', 'total_reserved',
'staking_requirement', 'portions_for_operator', 'operator_address', 'pubkey_ed25519',
'last_uptime_proof', 'state_height') } })
'last_uptime_proof', 'state_height', 'swarm_id') } })
def get_sns(sns_future, info_future):
info = info_future.get()

View File

@ -119,6 +119,12 @@
{{cp_voted}} / {{cp_total}}
</span>
<span title="Storage server swarm">
<label>Swarm ID:</label>
{%if sn.swarm_id == 18446744073709551615%}(none){%else%}0x{{'{:016x}'.format(sn.swarm_id)}}{%endif%}
</span>
</h4>
<h2>Service Node Status</h2>