Skip to content
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/createcluster: add --num-validators flag #863

Merged
merged 2 commits into from
Jul 27, 2022
Merged

Conversation

dB2510
Copy link
Contributor

@dB2510 dB2510 commented Jul 27, 2022

Adds --num-validators flag to create cluster command which would facilitate in creation of clusters with multiple DVs.

category: feature
ticket: #879

@codecov
Copy link

codecov bot commented Jul 27, 2022

Codecov Report

Merging #863 (486a745) into main (1adae1b) will decrease coverage by 0.25%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##             main     #863      +/-   ##
==========================================
- Coverage   54.90%   54.65%   -0.26%     
==========================================
  Files         113      113              
  Lines       12082    12076       -6     
==========================================
- Hits         6634     6600      -34     
- Misses       4489     4511      +22     
- Partials      959      965       +6     
Impacted Files Coverage Δ
cmd/createcluster.go 49.43% <50.00%> (-1.69%) ⬇️
core/tracker/tracker.go 60.47% <0.00%> (-10.08%) ⬇️
core/dutydb/memory.go 70.63% <0.00%> (-1.28%) ⬇️
app/app.go 56.01% <0.00%> (-0.68%) ⬇️
app/lifecycle/orderstart_string.go 40.00% <0.00%> (ø)
core/deadline.go 64.95% <0.00%> (+0.09%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1adae1b...486a745. Read the comment docs.

@@ -86,7 +87,7 @@ func bindClusterFlags(flags *pflag.FlagSet, config *clusterConfig) {
flags.StringVar(&config.WithdrawalAddr, "withdrawal-address", defaultWithdrawalAddr, "Ethereum address to receive the returned stake and accrued rewards.")
flags.StringVar(&config.Network, "network", defaultNetwork, "Ethereum network to create validators for. Options: mainnet, prater, kintsugi, kiln, gnosis.")
flags.BoolVar(&config.Clean, "clean", false, "Delete the cluster directory before generating it.")

flags.IntVar(&config.NumDVs, "validators", 1, "The number of distributed validators needed in the cluster.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please align with create dkg which calls this --num-validators

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure

@dB2510 dB2510 changed the title cmd/createcluster: add validators flag cmd/createcluster: add --num-validators flag Jul 27, 2022
@dB2510 dB2510 added the merge when ready Indicates bulldozer bot may merge when all checks pass label Jul 27, 2022
@obol-bulldozer obol-bulldozer bot merged commit 517ab8f into main Jul 27, 2022
@obol-bulldozer obol-bulldozer bot deleted the dhruv/numdvs branch July 27, 2022 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants