-
Notifications
You must be signed in to change notification settings - Fork 77
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
Add RPC method for extended information on connected peers #3480
Comments
I think this extension is quite a useful one since getpeers doesn’t give us anything except addresses. Vote up from my side for PR. |
How do you get this data? To me it requires P2P Refs. neo-project/neo#1844. |
@roman-khimov I use |
This sounds like a more useful alternative to the |
I had this thought as well, but current Semantically this |
I agree if we only add the fields to
Sure, depending on how its implemented it's a "best effort". Even what's returned in the |
Is your feature request related to a problem? Please describe.
I want to be able to quickly query my node for the network state (see last height of peers and their user agents). I've called it
getPeerHeights
because that's the main thing I want to check but maybegetConnectedPeerInfo
orgetNetworkState
etc is better.Describe the solution you'd like
Example usage:
Example response:
Describe alternatives you've considered
RPC extension seemed sensible enough.
Additional context
I have already implemented this method to meet my current needs. If consensus is that its useful, I am happy to send a PR for review.
The text was updated successfully, but these errors were encountered: