This repository has been archived by the owner on Jul 21, 2023. It is now read-only.
Add peers to the kbucket that are still missing #3
Labels
exp/expert
Having worked on the specific codebase is important
kind/enhancement
A net-new feature or improvement to an existing feature
P2
Medium: Good to have, but can wait until someone steps up
status/ready
Ready to be worked
Currently, there is a window of time after a new dial where a connection will be already established, but the kbucket doesn't know about it yet. A quick solution would be to do
peerBook.forEach - if peer.isConnected
and added those who missing, but at that time, we can't tell if that peer supports DHT.What we need is to use the
protocols
prop available, but for that, we need to start getting that populated from Identify.The text was updated successfully, but these errors were encountered: