feat(gossipsub/scoring): expose sub-components used to compute peer scores.
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 5.6k
- Forks
- 1.3k
- Avg merge
- 8h 47m
- Merged PRs (30d)
- 19
Description
Description
rust-libp2p only exposes the total peer score obtained after summing a range of sub-components (time in mesh, first message deliveries, ip collocation factor, behavioral penalties, ...). It would be great to return the components used inside the sum to compute the total score.
Motivation
This would be helpful for:
- debugging purposes
- providing better information to peers
Requirements
- Modify the
PeerScoreReport::scorefield to contain every subcomponent of the score along with the total "real" peer score.
Open questions
No response
Are you planning to do it yourself in a pull request?
Yes
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the gossipsub scoring implementation and the PeerScoreReport::score field. Trace how the total peer score is assembled from its subcomponents, then identify the existing tests for peer-score reporting. Done means the report exposes every component listed in the issue together with the total real peer score.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- networking
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100