You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First we should check if both of these endpoints (/node/allPeers, /node/connectedPeers) are needed. Are they doing the exact same thing? If yes remove one of them.
Secondly, exposing additional information about peers would be very useful. This is the current schema:
First we should check if both of these endpoints (/node/allPeers, /node/connectedPeers) are needed. Are they doing the exact same thing? If yes remove one of them.
The endpoints are showing different things:
allPeers -> are all the peers that the node knows about and considers as good peers;
connectedPeers -> are all the peers the node is actively exchanging data with.
So there can be a scenario when the node wants to connect to a peer (visible in allPeers) but this one won't accept the connection, so it's not listed by the connectedPeers endpoint.
Secondly, exposing additional information about peers would be very useful.
With some little tweaks we can add:
local and remote address;
local and remote port;
information about client/protocol version.
All other data will require more work to be included: do we need all the items in the bullet points to be included in the response?
First we should check if both of these endpoints (/node/allPeers, /node/connectedPeers) are needed. Are they doing the exact same thing? If yes remove one of them.
Secondly, exposing additional information about peers would be very useful. This is the current schema:
And here is an example of information exposed from the mainchain getpeerinfo RPC:
Extending the SC schema with this additional information would be of particular interest:
The text was updated successfully, but these errors were encountered: