Skip to content

Commit

Permalink
hide in/outbound peer counts for nethermind + besu due to them not ex…
Browse files Browse the repository at this point in the history
…posing that info via the rpc endpoints
  • Loading branch information
skylenet committed Jul 15, 2024
1 parent 12c6847 commit dc7abf6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions templates/clients/clients_el.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ <h1 class="h4 mb-1 mb-md-0"><i class="fas fa-server mx-2"></i>Execution clients<
</td>
<td style="font-size: 0.8rem; vertical-align: middle;">
<span style="width:30px;display: inline-block;" class="text-success" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-title="Inbound Peers">
{{ if $client.DidFetchPeers }}
{{ if and ($client.DidFetchPeers) (not (or (contains $client.Version "besu") (contains $client.Version "Nethermind"))) }}
{{ $client.PeersInboundCounter }}
{{ else }}
?
{{ end }}
<i class="fa-solid fa-arrow-down"></i>
</span>
<span style="width:30px;display: inline-block;" class="text-danger" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-title="Outbound Peers">
{{ if $client.DidFetchPeers }}
{{ if and ($client.DidFetchPeers) (not (or (contains $client.Version "besu") (contains $client.Version "Nethermind"))) }}
{{ $client.PeersOutboundCounter }}
{{ else }}
?
Expand Down Expand Up @@ -106,15 +106,15 @@ <h1 class="h4 mb-1 mb-md-0"><i class="fas fa-server mx-2"></i>Execution clients<
<table style="margin:0 auto; text-align: left;">
<tbody>
<tr>
<td style="margin-right: 10px;">ID</td>
<td>
<td>ID</td>
<td style="padding-left: 10px;">
<code>{{ $client.PeerID }}</code>
<i class="fa fa-copy text-muted p-1" role="button" data-bs-toggle="tooltip" title="Copy to clipboard" data-clipboard-text="{{ $client.PeerID }}"></i>
</td>
</tr>
<tr>
<td>Name</td>
<td>
<td style="padding-left: 10px;">
<code>{{ $client.PeerName }}</code>
<i class="fa fa-copy text-muted p-1" role="button" data-bs-toggle="tooltip" title="Copy to clipboard" data-clipboard-text="{{ $client.PeerName }}"></i>
</td>
Expand Down

0 comments on commit dc7abf6

Please sign in to comment.