libp2p / libp2p/rust-libp2p

feat(gossipsub/scoring): expose sub-components used to compute peer scores.

Open
#6,058 1 comment 1 reaction 0 assignees View on GitHub

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
  1. Modify the PeerScoreReport::score field 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.