Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add remote node connections to admin panel #646

Merged
merged 4 commits into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ header @html Content-Security-Policy "
connect-src 'self'
media.deso.org
node.deso.org
*.deso.run
amp.deso.org
bithunt.deso.org
bitclout.com:*
Expand Down
21 changes: 21 additions & 0 deletions src/app/network-info/network-info.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,27 @@
<i *ngIf="isOpen.desoNode" class="fas fa-caret-down"></i>
DeSo Node Info
</span>
<div class="ml-15px">
Remote Node Connections
<table class="fs-12px">
<thead>
<td>IP</td>
<td>Status</td>
<td>Validator Info</td>
</thead>
<tbody>
<tr *ngFor="let connection of globalVars.nodeInfo.RemoteNodeConnections">
<td>{{ connection.PeerResponse.IP + ':' + connection.PeerResponse.ProtocolPort }}</td>
<td>
<i [ngClass]="connection.PeerConnected ? 'fas fa-solid fa-check fc-green' : 'fas fa-solid fa-x fc-red'"></i>
{{ connection.RemoteNodeStatus }}
</td>
<td class="text-truncate">
{{ connection?.ValidatorResponse?.ValidatorPublicKeyBase58Check }}
</td>
</tr>
</table>
</div>
<div *ngIf="isOpen.desoNode && updatingDeSoPeer" class="ml-15px fc-muted">
Updating DeSo peers...
</div>
Expand Down