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: emit event when FILTER subscribe to a topic. #2493

Merged
merged 1 commit into from
Mar 1, 2024

Conversation

SionoiS
Copy link
Contributor

@SionoiS SionoiS commented Feb 29, 2024

Description

Filter subscribe now trigger an topic subscription event which result in Waku Metadata being updated.

Previously light nodes would get disconnected because they had no shards specified in Waku Metadata.

Close #2491

@SionoiS SionoiS changed the title fix: notify when FILTER subscribe to a topic. fix: emit event when FILTER subscribe to a topic. Feb 29, 2024
Copy link

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:2493

Built from c67c0d0

@SionoiS SionoiS marked this pull request as ready for review February 29, 2024 20:08
Copy link
Collaborator

@Ivansete-status Ivansete-status left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks! 💯

Copy link
Member

@richard-ramos richard-ramos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
We need to take into account that this would only fix the scenario in which you subscribe against a known peer, however as described in #2491 (comment) if you rely on peer exchange to obtain the peers which you would use for subscribing to filter, then sadly you'd still get disconnected.

@SionoiS SionoiS merged commit 91e3f8c into master Mar 1, 2024
12 of 14 checks passed
@SionoiS SionoiS deleted the fix--notify-when-filter-subscribe branch March 1, 2024 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: metadata protocol will disconnect light clients
3 participants