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

feat: integrate reputation manager into Lightpush behind a feature flag #3309

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

s-tikhomirov
Copy link
Contributor

@s-tikhomirov s-tikhomirov commented Feb 26, 2025

Description

This PR integrates a reputation system designed as part of the incentivization PoC into the Lightpush protocol behind a feature flag (reputation).

A Lightpush client uses the reputation manager to keep track of peers it used previously to publish messages. Peers that had failed at publishing a message get assigned a negative reputation and will not be chosen for future requests. If, however, a neutral- or positive-reputation peer isn't selected by the peer manager after a maximum number of attempts (10), a negative-reputation peer is still used.

This is a countinuaton of #3166, #3264, and #3293 with associated deliverable waku-org/pm#245.

Changes

  • add an optional reputation manager for Lightpush client behind a feature flag
  • add tests for the reputation manager
  • refactor the publishToAny logic for lightpush
  • add reputation-based logic to peer selection in a Lightpush client

Copy link

github-actions bot commented Feb 27, 2025

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:3309

Built from d02f5f8

@s-tikhomirov s-tikhomirov force-pushed the feat/incentivization-poc-lightpush-integration-reputation branch from 2ffc878 to 321dc7e Compare February 28, 2025 15:29
@s-tikhomirov s-tikhomirov marked this pull request as ready for review February 28, 2025 15:40
@s-tikhomirov s-tikhomirov changed the title feat: integrate reputation manager into Lightpush behind a feature flag [WIP] feat: integrate reputation manager into Lightpush behind a feature flag Feb 28, 2025
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