waku-org / js-waku

JavaScript implementation of Waku v2
https://js.waku.org
Apache License 2.0
167 stars 42 forks source link

feat(filter): use protocol peer management #2046

Closed danisharora099 closed 3 months ago

danisharora099 commented 3 months ago

This is a feature request

Problem

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

Every time a new subscription is created, 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

Use the logic implemented in #2044 for Filter