waku-org / js-waku

JavaScript implementation of Waku v2

Home Page:https://js.waku.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feat: enable protocols to have control over peers used

danisharora099 opened this issue · comments

This is a feature request

Problem

We currently have limited control over the peers that are used for each protocol.

Every time a new request is sent, getPeers() is called, which fetches a new list of peers based on the current nodes that are connected.

This poses as a blocker to retrieve, and control, nodes and perform operations such as renewals.

Proposed Solutions

Maintain a list of nodes that are to be used for each protocol. This should allow to perform operations on these nodes such as disconnection management and renewals.

resolved by