-
Notifications
You must be signed in to change notification settings - Fork 90
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
cmd: simplify create cluster
logic
#2380
Conversation
Artificially set it to 1 if splitkeys is enabled, so that the code flow can continue.
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2380 +/- ##
==========================================
+ Coverage 53.63% 53.67% +0.04%
==========================================
Files 192 192
Lines 25931 25958 +27
==========================================
+ Hits 13907 13933 +26
- Misses 10299 10306 +7
+ Partials 1725 1719 -6
☔ View full report in Codecov by Sentry. |
What happens if I enable |
I’m reworking the whole PR, I’ll ask for review later. The approach I used in this PR didn’t seem sound. |
create cluster
create cluster
logic
@OisinKyne please review the behavior changes now |
This PR refactors
create cluster
logic to make it slightly simpler.New behaviors:
--split-existing-keys
is enabled,--num-validators
cannot be set--num-validators
must be present unless--split-existing-keys
is enabled, otherwisecreate cluster
exits with error--split-existing-keys
before this PR, if the user specified a--num-validators
greater than the amount of keys contained in--split-keys-dir
Charon would fill in the blanks with random keys--num-validators
don't match, the creation process stopscategory: refactor
ticket: #2341