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

chore(rln-relay): disable merkle root validation #1246

Merged
merged 4 commits into from
Oct 6, 2022

Conversation

rymnc
Copy link
Contributor

@rymnc rymnc commented Oct 6, 2022

As discussed with @staheri19 for reliability of waku-rln-relay on the test fleet while we investigate and
resolve the issue

@rymnc rymnc added the track:rln RLN Track (Secure Messaging/Applied ZK), e.g. relay and applications label Oct 6, 2022
@rymnc rymnc self-assigned this Oct 6, 2022
@rymnc rymnc requested a review from staheri14 October 6, 2022 17:01
Copy link
Contributor

@staheri14 staheri14 left a comment

Choose a reason for hiding this comment

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

Thanks!

@status-im-auto
Copy link
Collaborator

status-im-auto commented Oct 6, 2022

Jenkins Builds

Click to see older builds (2)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 358c7b6 #1 2022-10-06 17:17:44 ~15 min linux 📦bin
✔️ 358c7b6 #1 2022-10-06 17:21:29 ~19 min macos 📦bin
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 98e43be #2 2022-10-06 19:07:52 ~14 min linux 📦bin
✔️ 98e43be #2 2022-10-06 19:10:19 ~16 min macos 📦bin
✔️ a043a2e #3 2022-10-06 19:43:36 ~14 min linux 📦bin
a043a2e #3 2022-10-06 19:46:05 ~17 min macos 📄log
✔️ a043a2e #4 2022-10-06 20:12:16 ~16 min macos 📦bin

return MessageValidationResult.Invalid
## TODO: FIXME
# if not rlnPeer.validateRoot(msg.proof.merkleRoot):
# debug "invalid message: provided root does not belong to acceptable window of roots", provided=msg.proof.merkleRoot, validRoots=rlnPeer.validMerkleRoots
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of commenting this out, better to INFO/WRN log this

## TODO: FIXME
# if not rlnPeer.validateRoot(msg.proof.merkleRoot):
# debug "invalid message: provided root does not belong to acceptable window of roots", provided=msg.proof.merkleRoot, validRoots=rlnPeer.validMerkleRoots
# waku_rln_invalid_messages_total.inc(labelValues=["invalid_root"])
Copy link
Contributor

Choose a reason for hiding this comment

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

This can still be included

Copy link
Contributor

Choose a reason for hiding this comment

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

Good point, bringing it back

Copy link
Contributor

Choose a reason for hiding this comment

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

This and log above makes it easier to debug, especially with other PRs to improve connectivity robustness

Copy link
Contributor

Choose a reason for hiding this comment

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

Sure, done 98e43be

# if not rlnPeer.validateRoot(msg.proof.merkleRoot):
# debug "invalid message: provided root does not belong to acceptable window of roots", provided=msg.proof.merkleRoot, validRoots=rlnPeer.validMerkleRoots
# waku_rln_invalid_messages_total.inc(labelValues=["invalid_root"])
# return MessageValidationResult.Invalid
Copy link
Contributor

Choose a reason for hiding this comment

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

This is only part that should be commented out for now, ideally with link to issue to fix

Copy link
Contributor

Choose a reason for hiding this comment

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

done too a043a2e

Copy link
Contributor

@s1fr0 s1fr0 left a comment

Choose a reason for hiding this comment

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

LGTM!

@staheri14 staheri14 merged commit 8a8c745 into master Oct 6, 2022
@staheri14 staheri14 deleted the disable-merkle-root-validation branch October 6, 2022 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
track:rln RLN Track (Secure Messaging/Applied ZK), e.g. relay and applications
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants