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: Execution logic for default topic validators in WakuRelay #887

Merged
merged 3 commits into from
Nov 10, 2023

Conversation

hishboy
Copy link
Contributor

@hishboy hishboy commented Nov 9, 2023

Description

This PR addresses an issue in the WakuRelay's topic validation mechanism. Previously, if topicValidators were not set for a specific topic but defaultTopicValidators were provided, the logic incorrectly bypassed executing these default validators. This was due to the check being performed before merging the defaultTopicValidators. The proposed change ensures we correctly assess the combined list of validators after merging both topicValidators and defaultTopicValidators. This means that all validators will always be considered, regardless of whether specific topic validators are set.

@hishboy hishboy changed the title fix: Execution Logic for Default Topic Validators in WakuRelay fix: Execution logic for default topic validators in WakuRelay Nov 9, 2023
@richard-ramos
Copy link
Member

Good catch!

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.

Nice!
LGTM

Curious to know if you using go-waku to build something.

@hishboy
Copy link
Contributor Author

hishboy commented Nov 10, 2023

Nice! LGTM

Curious to know if you using go-waku to build something.

Hey @chaitanyaprem, yep we're building tribes decentralized network using go-waku and js-waku (https://www.tribes.xyz)

@chaitanyaprem
Copy link
Collaborator

Nice! LGTM
Curious to know if you using go-waku to build something.

Hey @chaitanyaprem, yep we're building tribes decentralized network using go-waku and js-waku (https://www.tribes.xyz)

Did not know that, Awesome!
Would love to know more on how you are using Waku.
Is it just for chat or any other off-chain communication as well?

Specifically how are you guys using go-waku and js-waku?

Do reach out to us on discord in case you require any support or discussion.

@hishboy
Copy link
Contributor Author

hishboy commented Nov 10, 2023

@chaitanyaprem yep I'm in the discord. Username hishboy. I'll ping you there and discuss our plans. Thanks!

@hishboy
Copy link
Contributor Author

hishboy commented Nov 10, 2023

Hey @richard-ramos / @chaitanyaprem, it seems like the checks are stuck for a while (see screenshot). Is it common to take that long to complete?

image

@chaitanyaprem
Copy link
Collaborator

Hey @richard-ramos / @chaitanyaprem, it seems like the checks are stuck for a while (see screenshot). Is it common to take that long to complete?
image

Nah, they are generally done in max of 10 mins.
@jakubgs , can you take a look? Looks like CI checks are stuck from more than an hour or so.

@status-im-auto
Copy link

status-im-auto commented Nov 10, 2023

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 53456a3 #1 2023-11-10 09:49:21 ~4 min android 📦tgz
✔️ 53456a3 #1 2023-11-10 09:54:55 ~2 min nix-flake 📄log
✔️ 53456a3 #1 2023-11-10 09:55:13 ~2 min linux 📦deb
✔️ 53456a3 #1 2023-11-10 09:56:00 ~4 min tests 📄log
✔️ 53456a3 #1 2023-11-10 09:56:18 ~3 min tests 📄log
✔️ 53456a3 #1 2023-11-10 10:16:31 ~23 min ios 📦tgz

@chaitanyaprem chaitanyaprem merged commit 10e32d1 into waku-org:master Nov 10, 2023
3 checks passed
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.

4 participants