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: peer selection for protocols #2074

Open
weboko opened this issue Jul 18, 2024 · 0 comments
Open

feat: peer selection for protocols #2074

weboko opened this issue Jul 18, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@weboko
Copy link
Collaborator

weboko commented Jul 18, 2024

This is a feature request

Problem

Currently we select peers for use by protocol as it is - just by fetching them from peer store.

It is not a problem by itself but it impacts some features we want to implement such as:

  • LightPush message verification via Filter;
  • LightPush message verification Store;

It also theoretically increases footprint of a light node in the network and thus making it more stable.

Proposed Solutions

Peer selection mechanism based on priorities:

  • when peer pool is getting filled - select those that are not used by other protocols;
  • if no peers available use any available;

This also should be a part of renewal mechanism.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Priority
Development

No branches or pull requests

2 participants