Skip to content

Conversation

@lthibault
Copy link

Description

Addresses #6058

Add PeerScoreParameters struct to expose granular breakdown of peer scores:

  • Individual contributions for P1-P7 score parameters
  • Slow peer penalty tracking
  • Final score field

Add peer_score_params() public API method to retrieve detailed score breakdown.

This enables external tooling and debugging to inspect individual components of the gossipsub peer scoring algorithm per the v1.1 spec.

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • A changelog entry has been made in the appropriate crates

Add PeerScoreParameters struct to expose granular breakdown of peer scores:
- Individual contributions for P1-P7 score parameters
- Slow peer penalty tracking
- Final score field

Add peer_score_params() public API method to retrieve detailed score breakdown.

This enables external tooling and debugging to inspect individual components
of the gossipsub peer scoring algorithm per the v1.1 spec.
@elenaf9 elenaf9 requested a review from jxs October 28, 2025 08:16
@lthibault lthibault marked this pull request as ready for review October 28, 2025 15:31
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

Successfully merging this pull request may close these issues.

1 participant