-
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
chore(rln-relay-v2): added tests for onchain rln-relay-v2 #2482
Conversation
c3106bc
to
e77c0b6
Compare
You can find the image built from this PR at
Built from 1b070c6 |
a1db50b
to
3c08096
Compare
3c08096
to
11edcb6
Compare
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.
11edcb6
to
4685099
Compare
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! 💯
Just minor nitpick comments:)
raise newException(CatchableError, "failed to convert rateCommitments to leaves: " & leavesRes.error) | ||
let leaves = cast[seq[seq[byte]]](leavesRes.get()) | ||
let leaves = rateCommitments.toLeaves().valueOr: | ||
raise newException(ValueError, "failed to convert rateCommitments to leaves: " & $error) |
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.
Unrelated to this PR but I'm more keen on avoid raising exceptions whenever is possible
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.
Will address in follow up prs!
Co-authored-by: Ivan FB <[email protected]>
Description
This PR includes changes to the
test_rln_group_manager_onchain
with fixes to some of the serde done at the event parsing side.Note
The rln-v2 test suite is not feature complete yet, i.e it has to be integrated in other test suites like
test_wakunode_rln_relay.nim
andtest_waku_rln_relay.nim
, those will be addressed in follow up PRsChanges
How to test
source env.sh
nim c --out:build/onchain_rln_test -r -d:chronicles_log_level=DEBUG -d:rln_v2:true -d:os=Darwin --verbosity:0 --hints:off -d:chronicles_log_level=TRACE -d:git_version="v0.24.0-rc.0-35-g50308e" -d:release --passL:librln_v0.4.1.a --passL:-lm tests/waku_rln_relay/test_rln_group_manager_onchain.nim
Issue
closes #2481