-
Notifications
You must be signed in to change notification settings - Fork 53
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
feat: Added message size check before relay for lightpush #2695
Conversation
You can find the image built from this PR at
Built from 241ef99 |
You can find the image built from this PR at
Built from 241ef99 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks so much! 🔥 🔥 🔥
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work. Minor comment below which you may address, but no need to re-request review. According to me this can be merged. :)
waku/node/waku_node.nim
Outdated
let validationRes = await node.wakuRelay.validateMessage(pubSubTopic, message) | ||
if validationRes.isErr(): | ||
return err(validationRes.error) | ||
else: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since you return in the previous line, I don't think this else
is necessary. In other words, if validation failed, this block of code will not be executed, whether in an else
block or not.
Description
Added setup for message validation for lightpush service nodes to catch validation failures before relay. Fixes issue #2595 . Followup to PR #2671 .
Changes