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

*: partial deposits bugfixes #2951

Merged
merged 1 commit into from
Mar 7, 2024
Merged

Conversation

pinebit
Copy link
Contributor

@pinebit pinebit commented Mar 7, 2024

Several fixes for bugs identified in partial deposits implementation.
Plus, a few improvements to prevent using partial deposits for unsupported lock version.

category: bug
ticket: none

Copy link

sonarcloud bot commented Mar 7, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

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

See analysis details on SonarCloud

Copy link

codecov bot commented Mar 7, 2024

Codecov Report

Attention: Patch coverage is 76.66667% with 7 lines in your changes are missing coverage. Please review.

Project coverage is 54.12%. Comparing base (7584db1) to head (d650065).

Files Patch % Lines
cluster/definition.go 22.22% 6 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2951      +/-   ##
==========================================
+ Coverage   54.10%   54.12%   +0.02%     
==========================================
  Files         194      194              
  Lines       27380    27399      +19     
==========================================
+ Hits        14815    14831      +16     
- Misses      10814    10815       +1     
- Partials     1751     1753       +2     

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

@@ -38,6 +38,13 @@ func WithVersion(version string) func(*Definition) {
}
}

// WithDKGAlgorithm returns an option to set a non-default DKG algorithm in a new definition.
func WithDKGAlgorithm(algorithm string) func(*Definition) {
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this needed? we only support one dkg algo atm

Copy link
Contributor Author

@pinebit pinebit Mar 7, 2024

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

but why do we need to populate the dkg algorithm?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this is to respect the given configuration. I believe the implementation assumes different algorithms passed from the config. If you think this is odd, then we can have a ticket to remove this field from the config entirely.

@pinebit pinebit added the merge when ready Indicates bulldozer bot may merge when all checks pass label Mar 7, 2024
@obol-bulldozer obol-bulldozer bot merged commit f22a2da into main Mar 7, 2024
12 checks passed
@obol-bulldozer obol-bulldozer bot deleted the pinebit/fixing-partial-deposits branch March 7, 2024 09:22
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