status-im / status-go

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

feat: enable pxClient and increase max-peer-connections for relay #5378

Closed chaitanyaprem closed 4 months ago

chaitanyaprem commented 5 months ago

Problem

Have noticed some issues with discv5 in forming healthy relay mesh in status-desktop.
per @jm-clius .


The desktop/mobile app should also have almost equal number of peers as fleet nodes(or active nodes in the network) as
This is an indication that out of all the connected peers, gossipsub can form a healthy mesh.

Observations are noted here https://github.com/waku-org/nwaku/issues/2810

Implementation

While this is debugged,

Acceptance Criteria

Notes

Changes in go-waku to be made to increase number of peer connections supported and also allow peerManager to try connecting to peers. https://github.com/waku-org/go-waku/pull/1135 topicHealthReporting also has to be changed to indicate based on number of fullMeshPeers and overall peerCount. https://github.com/waku-org/go-waku/issues/1131

Future Steps

Once discv5 issue is resolved, then peerExchangeClient can be disabled in relayMode as peers would be discovered from discv5.

chaitanyaprem commented 4 months ago

addressed as part of #5411