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: refactor exits #3248

Merged
merged 3 commits into from
Sep 4, 2024
Merged

cmd: refactor exits #3248

merged 3 commits into from
Sep 4, 2024

Conversation

KaloyanTanev
Copy link
Contributor

Refactor exits logic. There is no change in the logic anywhere. The main differences are:

  • fetching the validator index and validator pub key are in separate functions, which makes it more readable what is the flow
  • ExpertMode is renamed to SkipBeaconNodeCheck as this is essentially what it does

If others agree, I'm in favour of completely removing the SkipBeaconNodeCheck config, as it is unnecessary.

category: refactor
ticket: none

Copy link

codecov bot commented Sep 3, 2024

Codecov Report

Attention: Patch coverage is 76.38889% with 17 lines in your changes missing coverage. Please review.

Project coverage is 57.64%. Comparing base (92ce181) to head (5b6e22f).

Files with missing lines Patch % Lines
cmd/exit_sign.go 76.38% 12 Missing and 5 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3248      +/-   ##
==========================================
- Coverage   57.67%   57.64%   -0.03%     
==========================================
  Files         211      211              
  Lines       30372    30382      +10     
==========================================
- Hits        17517    17514       -3     
- Misses      10971    10980       +9     
- Partials     1884     1888       +4     

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

@KaloyanTanev KaloyanTanev self-assigned this Sep 3, 2024
Copy link
Collaborator

@gsora gsora left a comment

Choose a reason for hiding this comment

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

Generally I like the idea, left a few comments that need clarification.

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

sonarcloud bot commented Sep 4, 2024

@KaloyanTanev KaloyanTanev added the merge when ready Indicates bulldozer bot may merge when all checks pass label Sep 4, 2024
@obol-bulldozer obol-bulldozer bot merged commit 3d6c2f0 into main Sep 4, 2024
11 checks passed
@obol-bulldozer obol-bulldozer bot deleted the kalo/refactor-exit branch September 4, 2024 15:44
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