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

[Merged by Bors] - Fix voluntary exit to work with latest beacon api #2257

Closed
wants to merge 2 commits into from

Conversation

pawanjay176
Copy link
Member

Issue Addressed

Also fixes #1932

Proposed Changes

Use ValidatorStatus::ActiveOngoing instead of ValidatorStatus::Active to filter active validators.
Prints extra information regarding successful voluntary exit.

Copy link
Member

@paulhauner paulhauner left a comment

Choose a reason for hiding this comment

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

Nice, thanks for following up on this. There's a TODO in here, which I've commented. Perhaps we could also add some sort of message telling the user that we're going to wait until the exit is accepted into the chain and it might take several minutes. Perhaps adding a message when we poll but don't break would be handy too?

loop {
// Sleep for 1 slot duration and then check if voluntary exit was processed
// by checking the validator status.
// TODO: should we wait for longer to account for forks?
Copy link
Member

Choose a reason for hiding this comment

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

TODO

Perhaps we just update the "Voluntary exit has been accepted..." text to say something along the lines of:

"Voluntary exit has been accepted into the beacon chain, but not yet finalized. Finalization may take several minutes or longer. Before finalization there is a low probability that the exit may be reverted."

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep, this sounds perfect. Will make the changes.

@paulhauner paulhauner added the waiting-on-author The reviewer has suggested changes and awaits thier implementation. label Mar 14, 2021
Copy link
Member

@paulhauner paulhauner left a comment

Choose a reason for hiding this comment

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

Nice one!

bors r+

@paulhauner paulhauner added ready-for-merge This PR is ready to merge. and removed waiting-on-author The reviewer has suggested changes and awaits thier implementation. labels Mar 17, 2021
bors bot pushed a commit that referenced this pull request Mar 17, 2021
## Issue Addressed

Also fixes #1932 

## Proposed Changes

Use `ValidatorStatus::ActiveOngoing` instead of `ValidatorStatus::Active` to filter active validators.
Prints extra information regarding successful voluntary exit.
@paulhauner
Copy link
Member

I'll batch this

bors r-

@bors
Copy link

bors bot commented Mar 17, 2021

Canceled.

@paulhauner
Copy link
Member

bors r+

bors bot pushed a commit that referenced this pull request Mar 17, 2021
## Issue Addressed

Also fixes #1932 

## Proposed Changes

Use `ValidatorStatus::ActiveOngoing` instead of `ValidatorStatus::Active` to filter active validators.
Prints extra information regarding successful voluntary exit.
@bors bors bot changed the title Fix voluntary exit to work with latest beacon api [Merged by Bors] - Fix voluntary exit to work with latest beacon api Mar 17, 2021
@bors bors bot closed this Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge This PR is ready to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants