Skip to content
This repository was archived by the owner on Jul 21, 2023. It is now read-only.

Feat: grant peerDistance awareness to libp2p transports #481

@SgtPooki

Description

@SgtPooki

I’m on mobile and new to this codebase, but is it possible to only add peers to the peerDistanceList that have matching transports to the ones configured in libp2p?

it seems like the distance calculation has no awareness of peers that may not have valid (for my node) transports, which could easily result in filling up closestPeers to ‘this.capacity’ that I can’t talk to because they don’t talk the same transport as me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions