Skip to content

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

@theochap

Description

@theochap

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions