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: --deposit-amounts flag #2820

Merged
merged 7 commits into from
Jan 29, 2024
Merged

Conversation

pinebit
Copy link
Contributor

@pinebit pinebit commented Jan 24, 2024

Added --deposit-amounts flag to cmd interface for create cluster and dkg commands in according with the spec.

category: feature
ticket: none

@pinebit pinebit changed the title cmd: --partial-deposits flag cmd: --deposit-amounts flag Jan 24, 2024
Copy link

codecov bot commented Jan 24, 2024

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (4d66a10) 53.27% compared to head (69f4ac2) 53.23%.
Report is 11 commits behind head on main.

Files Patch % Lines
cmd/createcluster.go 44.44% 4 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2820      +/-   ##
==========================================
- Coverage   53.27%   53.23%   -0.05%     
==========================================
  Files         199      200       +1     
  Lines       27700    27738      +38     
==========================================
+ Hits        14758    14767       +9     
- Misses      11111    11140      +29     
  Partials     1831     1831              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

cluster/deposit.go Outdated Show resolved Hide resolved
dkg/dkg.go Outdated Show resolved Hide resolved
cluster/deposit.go Outdated Show resolved Hide resolved
cluster/deposit.go Outdated Show resolved Hide resolved
cluster/deposit.go Outdated Show resolved Hide resolved
cluster/deposit.go Outdated Show resolved Hide resolved
cluster/deposit.go Outdated Show resolved Hide resolved
cmd/createcluster.go Outdated Show resolved Hide resolved
cmd/dkg.go Outdated Show resolved Hide resolved
@pinebit
Copy link
Contributor Author

pinebit commented Jan 25, 2024

Thank you @xenowits for the review, addressed your feedback.

cluster/deposit.go Outdated Show resolved Hide resolved
Copy link
Contributor

@xenowits xenowits left a comment

Choose a reason for hiding this comment

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

LGTM!

pinebit and others added 2 commits January 26, 2024 08:52
Co-authored-by: Abhishek Kumar <43061995+xenowits@users.noreply.github.com>
cluster/deposit.go Outdated Show resolved Hide resolved
cmd/createcluster.go Outdated Show resolved Hide resolved
eth2util/deposit/deposit.go Show resolved Hide resolved
cmd/dkg.go Outdated
@@ -44,6 +44,7 @@ this command at the same time.`,
bindLogFlags(cmd.Flags(), &config.Log)
bindPublishFlags(cmd.Flags(), &config)
bindShutdownDelayFlag(cmd.Flags(), &config.ShutdownDelay)
bindPartialDepositsFlag(cmd.Flags(), &config.DepositAmounts)
Copy link
Contributor

Choose a reason for hiding this comment

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

why are we introducing this flag in dkg command? In dkg we have cluster-definition.json file at the start and according to the design doc deposit amounts will be there in cluster definition. We can read the deposit amounts field from cluster definition and verify the values from there.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was also suggested by the design doc, but probably you are right. Need @xenowits to confirm if this was intentional or not.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Resolved. Removed option from DKG. Amounts are specified in integer ETHs.

Copy link

sonarcloud bot commented Jan 29, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Contributor

@dB2510 dB2510 left a comment

Choose a reason for hiding this comment

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

LGTM

@pinebit pinebit added the merge when ready Indicates bulldozer bot may merge when all checks pass label Jan 29, 2024
@obol-bulldozer obol-bulldozer bot merged commit f929f59 into main Jan 29, 2024
12 checks passed
@obol-bulldozer obol-bulldozer bot deleted the pinebit/partial-deposits-cmd branch January 29, 2024 11:08
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