{% block stylesheet %}{% endblock %} {% macro blue(text) -%}
{{ text }}
{%- endmacro %} {% macro green(text) -%}
{{ text }}
{%- endmacro %} {% macro orange(text) -%}
{{ text }}
{%- endmacro %} {% macro red(text) -%}
{{ text }}
{%- endmacro %} {% macro green_if_true(cond) -%} {% if cond %}
{{ cond }}
{% else %}
{{ cond }}
{% endif %} {%- endmacro %}
{% include 'layouts/header.html' %}
{% for host, node_names, node in rpc.client_instances() %} {% if node.is_online() %} {% if node.is_graphene_based() %} {%- endif %} {% endif %} {% else %} {% set info = node.get_info() %} {% endif %} {% else %} {% endif %} {% endfor %}
Type RPC Host IP p2p port Hosted nodes Status Head block Wallet open Wallet unlocked {% if rpc.main_node.is_graphene_based() %}Signing key active{% else %}Block production enabled{% endif %}
{% set node_type = node.type() %} {% if node_type %} {% if node.is_online() %}
{% else %}
{% endif %} {{ node.type() }}
{% endif %}
{{ host }} {{ (network_utils.get_ip_nofail() if node.is_localhost() and node.is_online() else '') | add_ip_flag | safe }} {{ backbone.get_p2p_port(node) if node.is_online() else '' }} {{ node_names|join(', ') }}
online
{% if node.is_synced() %} {{ green(node.get_head_block_num()) }} {% else %} {{ blue(node.get_head_block_num()) }} {% endif %} {{ green_if_true(not node.is_new()) }} {{ green_if_true(not node.is_locked()) }} {% if node.is_witness() %} {% set is_active = node.is_signing_key_active() %} {% if is_active == 'not synced' -%} {{ orange('waiting for sync') }} {%- elif is_active == 'unknown' -%} {{ blue('unknown') }} {%- else -%} {{ green_if_true(is_active) }}{{ green_if_true(not node.is_new()) }} {{ green_if_true(not node.is_locked()) }} {{ green_if_true(info['wallet_block_production_enabled']) }}
{{ node.status() }}
{% block content %} {% endblock %}
{% include 'layouts/footer.html' %} {% block scripts %}{% endblock %}