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
[Merged by Bors] - validate genesis before using #4719
Conversation
node/node.go
Outdated
if err := app.Config.Genesis.Validate(); err != nil { | ||
return nil, fmt.Errorf("invalid genesis: %w", err) | ||
} | ||
|
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.
i think it is better to call Initialize before LoadOrCreateSigned in the GetCommand
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.
Updated accordingly.
Codecov Report
@@ Coverage Diff @@
## develop #4719 +/- ##
=========================================
- Coverage 77.3% 77.3% -0.1%
=========================================
Files 255 255
Lines 28683 28724 +41
=========================================
+ Hits 22191 22213 +22
- Misses 5115 5128 +13
- Partials 1377 1383 +6
|
bors try |
tryBuild succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
bors merge |
👎 Rejected by too few approved reviews |
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.
bors merge
Currently if run `fastnet` without specifying a `genesis-time`, will panic: ``` 2023-07-18T10:02:33.246+0200 INFO 00000.defaultLogger Looking for identity file at `/home/dd/post/data/key.bin` panic: code should have run Validate before this method ```
Pull request successfully merged into develop. Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
Currently if run
fastnet
without specifying agenesis-time
, will panic: