status-im / status-go

The Status module that consumes go-ethereum
https://status.im
Mozilla Public License 2.0
728 stars 246 forks source link

wakuv2: expose peer exchange #2974

Closed richard-ramos closed 10 months ago

richard-ramos commented 1 year ago

If most clients in the network are reachable and can therefore successfully be discovered, the few clients that can't, could discover random peers and make outgoing connections only using Waku Peer Exchange (at least in the meantime). The criteria to chose which peer-exchange-node should be used to request nodes from: chosen randomly from the fleet nodes Risk is of course that this has not been dogfooded, but it's not a resource-intensive protocol (cached set of random peers should be available immediately upon request)

See for full discussion:

richard-ramos commented 1 year ago

cc: @cammellos @iurimatias @jm-clius @fryorcraken

richard-ramos commented 1 year ago

Note: Peer exchange has been implemented in go-waku, but interop with nwaku hasnt been tested

richard-ramos commented 1 year ago

Peer exchange between go-waku and nwaku was tested succesfully