-
Notifications
You must be signed in to change notification settings - Fork 671
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
Support Custom Genesis Config for Non-Standard NetworkIDs #719
Conversation
5711049
to
1ea97f5
Compare
Codecov Report
@@ Coverage Diff @@
## dev #719 +/- ##
===================================================
+ Coverage 56.69442% 56.86361% +0.16919%
===================================================
Files 320 320
Lines 20420 20514 +94
===================================================
+ Hits 11577 11665 +88
- Misses 7586 7591 +5
- Partials 1257 1258 +1 |
6ed07bd
to
d724f87
Compare
genesis/genesis_test.go
Outdated
"fuji": { | ||
networkID: constants.FujiID, | ||
customConfig: localGenesisConfigJSON, // won't load | ||
expected: "2e6b699298a664793bff42dae9c1af8d9c54645d8b376fd331e0b67475578e0a", |
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.
there is probably a better way to do this....
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 thought about using an anonymous function to load these on-the-fly but didn't like the look (basically just replicated the logic of Genesis
to create the Config
we wanted)...still thinking.
c928a60
to
bea5d88
Compare
a08c83a
to
1a9e74b
Compare
1a9e74b
to
1a9cb7b
Compare
This PR adds a
--genesis
CLI argument that enables the user to specify the genesis config of the custom network their node is going to be running.Changes
--genesis
implementationinitialStakedFunds
typo ingenesis/config.go
Follow-Ups
assert.Error; assert.Contains
toassert.ErrorContains
once stretchr/testify@v1.8.0 released