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(rln_keystore_generator): improve error handling for unrecoverable failure #2881

Merged
merged 2 commits into from
Jul 10, 2024

Conversation

rymnc
Copy link
Contributor

@rymnc rymnc commented Jul 4, 2024

Description

The rln_keystore_generator previously did not pass in an onFatalErrorHandler, which was leading to segfaults since we don't have a not nil check on the callback. Now, this PR introduces the not nil check, and also provides an onFatalError callback to the OnchainGroupManager when it is constructed.

Changes

  • rln_keystore_generator now handles fatal errors appropriately
  • retryWrapper checks if the errCallback is nil, and handles the invariant appropriately

Copy link

github-actions bot commented Jul 4, 2024

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:2881

Built from 941ae42

Copy link
Contributor

@gabrielmer gabrielmer left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@Ivansete-status Ivansete-status merged commit 1c9eb27 into master Jul 10, 2024
8 of 10 checks passed
@Ivansete-status Ivansete-status deleted the fix-keystore-generator branch July 10, 2024 17:12
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.

3 participants