Closed mjadach-iv closed 1 year ago
The GET /node/peers
fetches the following information:
return {
peerId: info.peer_id(),
peerAddress: address?.to_string(),
multiAddr: multiaddr ? multiaddr.toString() : '',
heartbeats: {
sent: Number(info.heartbeats_sent),
success: Number(info.heartbeats_succeeded)
},
lastSeen: Number(info.last_seen),
quality: info.quality(),
backoff: info.backoff,
isNew: info.heartbeats_sent === BigInt(0),
reportedVersion: info.metadata().get(peer_metadata_protocol_version_name()) ?? 'unknown'
}
Is your feature related to a problem?
Will be a lot easier to remaster Network Dashbaord data gathering
Describe the feature you'd like
Add more fileds in the API /peers call: last latency and last version which a HOPRd node gets by automatic pinging of other nodes on the network.