-
Notifications
You must be signed in to change notification settings - Fork 44
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: Node private key requires data directory #1938
fix: Node private key requires data directory #1938
Conversation
…generation logic to CLI
Codecov ReportAttention:
@@ Coverage Diff @@
## develop #1938 +/- ##
===========================================
- Coverage 74.62% 74.60% -0.02%
===========================================
Files 234 234
Lines 23114 23116 +2
===========================================
- Hits 17248 17244 -4
- Misses 4681 4696 +15
+ Partials 1185 1176 -9
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 9 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
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, really good to get rid of that nastiness in the tests if nothing else :)
## Relevant issue(s) N/A ## Description This PR adds an option to set the p2p host private key. When no key is set, a new one will be generated. This fixes various tests that had to manually set a data directory even in memory only mode. ## Tasks - [x] I made sure the code is well commented, particularly hard-to-understand areas. - [x] I made sure the repository-held documentation is changed accordingly. - [x] I made sure the pull request title adheres to the conventional commit style (the subset used in the project can be found in [tools/configs/chglog/config.yml](tools/configs/chglog/config.yml)). - [x] I made sure to discuss its limitations such as threats to validity, vulnerability to mistake and misuse, robustness to invalidation of assumptions, resource requirements, ... ## How has this been tested? `make test` Manually ran in both badger and memory mode to test key generation. Specify the platform(s) on which this was tested: - MacOS
Relevant issue(s)
N/A
Description
This PR adds an option to set the p2p host private key. When no key is set, a new one will be generated. This fixes various tests that had to manually set a data directory even in memory only mode.
Tasks
How has this been tested?
make test
Manually ran in both badger and memory mode to test key generation.
Specify the platform(s) on which this was tested: