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

Add voluntary exit via validator manager #6612

Open
wants to merge 62 commits into
base: unstable
Choose a base branch
from

Conversation

chong-he
Copy link
Member

@chong-he chong-he commented Nov 26, 2024

Issue Addressed

Proposed Changes

-Add voluntary exit feature to the validator manager
-Add delete all validators by using the keyword "all"

Additional Info

I reuse some code from the lighthouse account validator exit file:
https://github.com/sigp/lighthouse/blob/stable/account_manager/src/validator/exit.rs

Thank you @michaelsproul for the help and guidance along the way

@chong-he chong-he added work-in-progress PR is a work-in-progress UX-and-logs labels Nov 26, 2024
@michaelsproul michaelsproul added the v6.1.0 New release c. Q1 2025 label Dec 19, 2024
@michaelsproul michaelsproul self-requested a review December 19, 2024 04:13
Copy link
Member

@michaelsproul michaelsproul left a comment

Choose a reason for hiding this comment

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

Looking good overall, just a few minor suggestions!

validator_manager/src/exit_validators.rs Outdated Show resolved Hide resolved
.value_name("NETWORK_ADDRESS")
.help("Address to a beacon node HTTP API")
.action(ArgAction::Set)
.display_order(0),
Copy link
Member

Choose a reason for hiding this comment

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

We could add a conflicts_with to make --beacon-node and --presign conflict? Users shouldn't be doing both.

Copy link
Member Author

Choose a reason for hiding this comment

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

Added in b579d40

Copy link
Member Author

Choose a reason for hiding this comment

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

Also added conflicts_with for the flag --exit-epoch and --beacon-node, and that --exit-epoch will require --presign as I think having --exit-epoch alone isn't meaningful.

683259d

validator_manager/src/exit_validators.rs Outdated Show resolved Hide resolved
validator_manager/src/exit_validators.rs Outdated Show resolved Hide resolved
validator_manager/src/exit_validators.rs Outdated Show resolved Hide resolved
@michaelsproul michaelsproul added waiting-on-author The reviewer has suggested changes and awaits thier implementation. and removed ready-for-review The code is ready for review labels Jan 22, 2025
@chong-he chong-he added ready-for-review The code is ready for review and removed waiting-on-author The reviewer has suggested changes and awaits thier implementation. labels Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-review The code is ready for review UX-and-logs v6.1.0 New release c. Q1 2025
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants