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

P2P: add wrapper/abstraction for known peers #2188

Open
CHr15F0x opened this issue Aug 26, 2024 · 0 comments
Open

P2P: add wrapper/abstraction for known peers #2188

CHr15F0x opened this issue Aug 26, 2024 · 0 comments

Comments

@CHr15F0x
Copy link
Member

CHr15F0x commented Aug 26, 2024

Instead of referring directly to libp2p::kad for known peers consider creating a wrapper that would hold the list of known peers.
The "list" would:

  • include "in-config" predefined peers (which ofc should also be in the local DHT)
  • be in sync with any kad updates (in particular new peers)

Pros:

  • syncing would proceed immediately provided that at least one peer was predefined via config,
  • internal p2p client logic wouldn't have to periodically poll for new/random peers.

Also see: #2187

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

No branches or pull requests

1 participant