Skip to content

Commit

Permalink
updated UI, updated peer diagnostics data structure
Browse files Browse the repository at this point in the history
  • Loading branch information
dvovk committed Oct 24, 2023
1 parent 121c99a commit 1abd447
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 712 deletions.
18 changes: 11 additions & 7 deletions internal/erigon_node/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,17 @@ type Versions struct {
}

type PeerNetworkInfo struct {
LocalAddress string `json:"localAddress"` // Local endpoint of the TCP data connection
RemoteAddress string `json:"remoteAddress"` // Remote endpoint of the TCP data connection
Inbound bool `json:"inbound"`
Trusted bool `json:"trusted"`
Static bool `json:"static"`
LocalAddress string `json:"localAddress"` // Local endpoint of the TCP data connection
RemoteAddress string `json:"remoteAddress"` // Remote endpoint of the TCP data connection
Inbound bool `json:"inbound"`
Trusted bool `json:"trusted"`
Static bool `json:"static"`
BytesIn int `json:"bytesIn"` // Number of bytes received from the peer
BytesOut int `json:"bytesOut"` // Number of bytes sent to the peer
CapBytesIn map[string]int `json:"capBytesIn"`
CapBytesOut map[string]int `json:"capBytesOut"`
TypeBytesIn map[string]int `json:"typeBytesIn"`
TypeBytesOut map[string]int `json:"typeBytesOut"`
}

type PeerInfo struct {
Expand All @@ -28,8 +34,6 @@ type PeerInfo struct {
Caps []string `json:"caps"` // Protocols advertised by this peer
Network PeerNetworkInfo `json:"network"`
Protocols map[string]interface{} `json:"protocols"` // Sub-protocol specific metadata fields
BytesIn int `json:"bytesIn"` // Number of bytes received from the peer
BytesOut int `json:"bytesOut"` // Number of bytes sent to the peer
}

type PeersInfo []PeerInfo
Expand Down
1 change: 0 additions & 1 deletion web/dist/assets/index-5fd7743c.css

This file was deleted.

Loading

0 comments on commit 1abd447

Please sign in to comment.