Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use total peers for pubsubTopic as out peers target #1170

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

chaitanyaprem
Copy link
Collaborator

While debugging connectivity issue, i had noticed that we are relying on only meshPeers and comparing it to relay out peers target in order to establish more connections. Since gossipSubMesh max would only be 8 and we would try to establish out connections always even if we reach relay outPeersTarget which is set to 80 for status.

Changing the logic to check with total pubsubTopic peerCounts and also the meshPeerCount.

@chaitanyaprem chaitanyaprem merged commit 76d8fd6 into master Jul 30, 2024
14 checks passed
@chaitanyaprem chaitanyaprem deleted the fix/relay-out-target branch July 30, 2024 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants