Skip to content
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

Query: Access to topic level peer scores to application layer #554

Open
chaitanyaprem opened this issue Feb 1, 2024 · 2 comments
Open

Comments

@chaitanyaprem
Copy link
Contributor

I would like to know if there is a way to access current peer scores at application layer.

I went through the gossipsub code and found that peerScores are internal and are not exposed. Is there any other way to access these?

This would help us indicate status of the peer connection health in application in case scores to all peers are low (which could just be due to bad internet connectivity which delays packets received).
This could be used to indicate bad network health.

@chaitanyaprem chaitanyaprem changed the title Query: Access to peer scores to application layer Query: Access to topic level peer scores to application layer Feb 1, 2024
@vyzo
Copy link
Collaborator

vyzo commented Feb 1, 2024

yes, you can get a periodic callback with a copy of the score table for exactly this purpose.

@vyzo
Copy link
Collaborator

vyzo commented Feb 1, 2024

See WithPeerScoreInspect in score.go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants