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: subscribing to RelaydefaultHandler in libwaku #3308

Merged

Conversation

gabrielmer
Copy link
Contributor

Description

In libwaku nodes, messages aren't being saved in Store for dynamically-subscribed shards. This happens because when subscribing dynamically via libwaku, we weren't setting the defaultRelayHandler we rely on for Store and other protocols.

We need to subscribe to the default handler when dynamically subscribing to topics too.

Changes

  • calling registerRelayDefaultHandler when calling waku_relay_subscribe in libwaku

Issue

#3076

Copy link
Contributor

@NagyZoltanPeter NagyZoltanPeter left a comment

Choose a reason for hiding this comment

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

What a catch! Great work!

Copy link

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:3308

Built from 9edb95d

@gabrielmer gabrielmer merged commit ef634c4 into master Feb 26, 2025
12 of 13 checks passed
@gabrielmer gabrielmer deleted the fix-store-for-in-libwaku-for-dynamically-subscribed-shards branch February 26, 2025 16:04
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.

3 participants