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: allow peer-selection without pubsubTopics #1112

Closed
wants to merge 1 commit into from

Conversation

chaitanyaprem
Copy link
Collaborator

@chaitanyaprem chaitanyaprem commented May 25, 2024

Description

Noticed that peer-selection always assumes supported pubsubTopics are known for a peer.
Added a functionality to not use pubsubTopic filter as selection if it is not passed in selectionCriteria.
But not sure if this is a valid peer selection mechanism.

Considering peers that are discovered in status-go seemed to get added without pubsubTopic list.

Note: I am not 100% sure if this is required. Will keep this in draft until i get clarity.

@status-im-auto
Copy link

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 827dc38 #1 2024-05-25 00:48:53 ~2 min nix-flake 📄log

continue
if len(criteria.PubsubTopics) > 0 {

pm.logger.Debug("discovering peers by pubsubTopic", zap.Strings("pubsubTopics", criteria.PubsubTopics))

Check failure

Code scanning / CodeQL

Log entries created from user input High

This log entry depends on a
user-provided value
.
This log entry depends on a
user-provided value
.
This log entry depends on a
user-provided value
.
@chaitanyaprem
Copy link
Collaborator Author

Closing this PR as this is not a required feature.

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