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: broadcast all exits #3288

Merged
merged 7 commits into from
Sep 19, 2024
Merged

cmd: broadcast all exits #3288

merged 7 commits into from
Sep 19, 2024

Conversation

KaloyanTanev
Copy link
Contributor

@KaloyanTanev KaloyanTanev commented Sep 17, 2024

Second part of adding the --all flag for exits.

This PR is for the charon exit broadcast command. Additionally, a flag exitFromDir is introduced so point to a directory with exit files.

category: feature
ticket: #3243

@KaloyanTanev KaloyanTanev self-assigned this Sep 17, 2024
@KaloyanTanev KaloyanTanev marked this pull request as draft September 17, 2024 14:44
Copy link

codecov bot commented Sep 17, 2024

Codecov Report

Attention: Patch coverage is 49.23077% with 66 lines in your changes missing coverage. Please review.

Project coverage is 57.63%. Comparing base (cbd39d3) to head (4b63156).
Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
cmd/exit_broadcast.go 50.79% 50 Missing and 12 partials ⚠️
cmd/exit.go 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3288      +/-   ##
==========================================
- Coverage   57.65%   57.63%   -0.02%     
==========================================
  Files         211      211              
  Lines       30480    30569      +89     
==========================================
+ Hits        17572    17619      +47     
- Misses      11010    11049      +39     
- Partials     1898     1901       +3     

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

@KaloyanTanev KaloyanTanev marked this pull request as ready for review September 17, 2024 15:08
return errors.Wrap(err, "exit message signature not verified")
}

if err := eth2Cl.SubmitVoluntaryExit(valCtx, &fullExit); err != nil {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We may exhaust the BN here on some big clusters. I'm thinking of ways to prevent that and I'm open to suggestions.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think a simple delay (maybe 100ms) should be safe enough? Otherwise NOP shall tweak rate limiting on its BN.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@gsora any view on that? I think of maybe adding a flag of type "be-gentle-with-bn" that adds some delay between broadcasts :)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Hm, to be fair I've never seen a BN choke under lots of voluntary exits.

@OisinKyne do you think this could be a concern?

cmd/exit_broadcast.go Outdated Show resolved Hide resolved
Copy link

sonarcloud bot commented Sep 18, 2024

@KaloyanTanev KaloyanTanev added the merge when ready Indicates bulldozer bot may merge when all checks pass label Sep 19, 2024
@obol-bulldozer obol-bulldozer bot merged commit cc0f14e into main Sep 19, 2024
12 checks passed
@obol-bulldozer obol-bulldozer bot deleted the kalo/exit-all-broadcast branch September 19, 2024 09:55
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