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(config): panic when loading invalid node key file #888

Merged
merged 3 commits into from
Aug 29, 2024

Conversation

lklimek
Copy link
Collaborator

@lklimek lklimek commented Aug 21, 2024

Issue being fixed or feature implemented

When node_key.json contains valid json but is malformed, commands like tenderdash show-node-id fail with panic.

What was done?

Added validation

How Has This Been Tested?

Manually with tenderdash show-node-id, added unit test.

Breaking Changes

None

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@lklimek lklimek added this to the v1.2 milestone Aug 21, 2024
Copy link
Member

@shumkov shumkov left a comment

Choose a reason for hiding this comment

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

Let's ship it with 1.2.1

@lklimek lklimek merged commit 7d40ae5 into master Aug 29, 2024
15 checks passed
@lklimek lklimek deleted the fix/validate-node-key branch August 29, 2024 10:22
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.

2 participants