waku-org / nwaku

Waku node and protocol.
Other
198 stars 50 forks source link

chore: filter peers stored in cache by cluster-id in peer-exchange #2910

Closed Ivansete-status closed 3 weeks ago

Ivansete-status commented 1 month ago

Background

This is inspired by https://github.com/waku-org/go-waku/pull/1139

If the cluster-id is specified, then the waku peer exchange protocol should only consider peers with that given cluster-id.

fryorcraken commented 1 month ago

Regarding cluster-id not specified, then I guess filtering should not be applied. However, it may make more sense to make it impossible for the cluster-id to not be specified.