-
Notifications
You must be signed in to change notification settings - Fork 524
Algod API: Get connected peers #6500
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
base: master
Are you sure you want to change the base?
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 |
daemon/algod/api/algod.oas2.json
Outdated
| } | ||
| ] | ||
| }, | ||
| "/v2/peers": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idk, maybe it should go to /v2/node/peers or similar (along with the shutdown) in order to keep the root "namespace" contained?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense. Implemented in 00327fc
| } | ||
| }, | ||
| "/v2/shutdown": { | ||
| "/v2/node/shutdown": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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