libp2p / js-libp2p

The JavaScript Implementation of libp2p networking stack.
https://libp2p.io
Other
2.27k stars 435 forks source link

fix: return closest peers from FIND_NODE #2499

Closed achingbrain closed 3 months ago

achingbrain commented 3 months ago

The FIND_NODE DHT operation should return the closest peers the node knows to the value.

It does not need to return itself in the list because the calling peer already knows about it.

Fixes #2450

Change checklist

guillaumemichel commented 3 months ago

Looks good, thanks @achingbrain !