dashpay / tenderdash

⟁ Tenderdash Core (SBFT Consensus) in Go
https://www.dashpay.org
Other
15 stars 14 forks source link

fix(config): panic when loading invalid node key file #888

Closed lklimek closed 3 weeks ago

lklimek commented 1 month ago

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:

For repository code-owners and collaborators only