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(rest/store): allow local queries #1088

Merged
merged 2 commits into from
Apr 17, 2024
Merged

fix(rest/store): allow local queries #1088

merged 2 commits into from
Apr 17, 2024

Conversation

richard-ramos
Copy link
Member

Description

Sets the behavior for store queries in REST to be similar to nwaku, in which if no peer is specified, and the wakunode is a store node, then it will query itself.
In addition to that, I noticed that the store protocol was registering itself to be used in the ENR when instantiating WakuStore, and this is wrong because instantiating a WakuStore does not mean that the node itself will be a store node (it can be only a client), so I moved that part of the code to the Start function.

Issue

closes #1087

@status-im-auto
Copy link

status-im-auto commented Apr 15, 2024

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 6cdf422 #1 2024-04-15 15:26:36 ~1 min nix-flake 📄log
✔️ 42b4c22 #2 2024-04-17 12:24:10 ~1 min nix-flake 📄log

Copy link
Collaborator

@chaitanyaprem chaitanyaprem left a comment

Choose a reason for hiding this comment

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

LGTM

Good find wrt service registration with ENR.

@richard-ramos richard-ramos merged commit ea3f9d8 into master Apr 17, 2024
12 checks passed
@richard-ramos richard-ramos deleted the rest-localquery branch April 17, 2024 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
3 participants