Skip to content
This repository was archived by the owner on Aug 2, 2021. It is now read-only.
This repository was archived by the owner on Aug 2, 2021. It is now read-only.

Kademlia sugestPeers should prioritize the closest peer in the neighbourhood #1897

@aperonam

Description

@aperonam
Contributor

As described in the following SWIP https://github.com/nolash/SWIPs/blob/hive/SWIPs/swip-hive.md SugestPeers method should fill unsaturated bins in ascending order of number of connected peers (bin with least amount of peers first) and from shallow to deep, however, if there are unconnected peers in the neighborhood, it should prioritize connecting to the closest one.

This is not happening right now: if there are two peers available to connect to, and both fall in the neighborhood, the closest peer isn't always suggested first

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Participants

    @aperonam

    Issue actions

      Kademlia sugestPeers should prioritize the closest peer in the neighbourhood · Issue #1897 · ethersphere/swarm