-
Notifications
You must be signed in to change notification settings - Fork 971
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
feat(cmd): Provide ability to specify network to user #1073
feat(cmd): Provide ability to specify network to user #1073
Conversation
… changing default store extension
0a341f5
to
39ada23
Compare
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.
Tested, with and without CELESTIA_CUSTOM opts too
CELESTIA_CUSTOM will only panic if it sees a store of the same network name that has been initialised already :)
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.
Requesting changes to keep the global state of params pkg being read-only and keeping network selection a Node instance specific. We should also keep defaults on the flags, so they explicit on the flag helps
294064b
to
fad9ec5
Compare
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.
Thanks, and looking forward to implementation of #1076
a821b80
to
21c0be3
Compare
Codecov Report
@@ Coverage Diff @@
## main #1073 +/- ##
==========================================
+ Coverage 56.56% 56.63% +0.07%
==========================================
Files 135 135
Lines 8965 8992 +27
==========================================
+ Hits 5071 5093 +22
- Misses 3359 3364 +5
Partials 535 535
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
Thanks!
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.
APPROOOOOVE
* feat(cmd): adding network flag, deprecating CELESTIA_PRIVATE_GENESIS, changing default store extension * fix(cmd): validating network passed with --node.network * feat(cmd): dynamic network list for command hint
* feat(cmd): adding network flag, deprecating CELESTIA_PRIVATE_GENESIS, changing default store extension * fix(cmd): validating network passed with --node.network * feat(cmd): dynamic network list for command hint
…tialised store (#1270) After conversation with @jbowen93 , we decided to allow using custom networks over an already-initialised node store. The issue this was originally attempting to prevent is accidental corruption of chain data in the case that a user accidentally leaves their environment variable set up and connects to another network over an old node store. This issue is actually currently prevented thanks to #1073 extending the node store name with the network name.
Closes #1066 .
--node.network < arabica || mamaki || ... >