-
Notifications
You must be signed in to change notification settings - Fork 54
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
chore(networking): decouple discovery, add peers and connect to them #1463
Comments
@kaiserd since you created waku_peer_exchange #1152 perhaps you have some thought on this. TLDR: I would like to remove the Since its also part of the spec (recommended) wanted to double check. |
@alrevuelta Thanks for this issue :). This is part of the peer exchange overhaul. As an additional task, you can add merging/removing the separate peer exchange discv5 loop. However, the peer exchange peer cache cannot simply be merged into the general peer store. We could (abstract):
|
@danisharora099 @D4nte This is part of the planned peer-exchange overhaul. This will change nwaku's logs with respect to peer exchange. Iirc you use the log messages for determining the wait time in js-waku tests. However, this change will significantly reduce necessary wait times, because the discv5 loops will be merged :). |
As agreed with @kaiserd, I will limit the scope of this issue to just add the peers from peer exchange to the |
Some work torwards closing this has beeen done here: #1527 TLDR: When we get peers via px we add them to the peer store instead of trying to connect to them. This decouples discovery (px in this case) from connection (which its the peer manager job) |
Background
We currently have the following functionalities coupled into the same functions, making it difficult to extend or reuse components, and more in general, to handle connections:
Some examples:
Acceptance criteria
peerstore
.peermanager
takes care of selecting peers from thepeerstore
and connecting to them.waku_node
The text was updated successfully, but these errors were encountered: