Algod API: Get connected peers - #6500
Conversation
❌ 6 Tests Failed:
View the top 1 failed test(s) by shortest run time
View the full list of 5 ❄️ flaky test(s)
To view more test analytics, go to the Test Analytics Dashboard |
| } | ||
| ] | ||
| }, | ||
| "/v2/peers": { |
There was a problem hiding this comment.
idk, maybe it should go to /v2/node/peers or similar (along with the shutdown) in order to keep the root "namespace" contained?
| } | ||
| }, | ||
| "/v2/shutdown": { | ||
| "/v2/node/shutdown": { |
There was a problem hiding this comment.
thank you for implementing. Technically this is API change. I guess the best way of action is:
- to mark it deprecated (deprecated: true)
- continue calling the shutdown method under it is old/current path along with the new one.
There was a problem hiding this comment.
Good catch. Implemented in 229f033
Thank you for taking the time to review this.
|
Latest patch adds visibility of all libp2p peers , including pubsub only connections, where algorand-ws protocol is not used. This is going to change once consensus migrates away from algorand-ws.
|
|
|
Summary
This pull request implements two ways to query the node's current peers:
GET /v2/peersgoal node peers