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 a CLI command for exiting validators #1652

Closed
paulhauner opened this issue Sep 23, 2020 · 1 comment
Closed

Add a CLI command for exiting validators #1652

paulhauner opened this issue Sep 23, 2020 · 1 comment
Assignees
Labels

Comments

@paulhauner
Copy link
Member

Description

Presently we don't have a way for validators to submit a VoluntaryExit. Once #1569 is merged, I think we should create a tool that uses the BN pool/voluntary_exits endpoint.

I expect it would look something like this:

lighthouse account validator exit --beacon-node http://localhost:5052 --keystore my-keystore.json --password-file my.pass
  • If --password-file is not supplied, it should be requested interactively.
  • --beacon-node can have a default value.

Additional Info

Here's a ready-made function to do a HTTP request to a beacon node:

/// `POST beacon/pool/voluntary_exits`
pub async fn post_beacon_pool_voluntary_exits(
&self,
exit: &SignedVoluntaryExit,
) -> Result<(), Error> {
let mut path = self.eth_path()?;
path.path_segments_mut()
.map_err(|()| Error::InvalidUrl(self.server.clone()))?
.push("beacon")
.push("pool")
.push("voluntary_exits");
self.post(path, exit).await?;
Ok(())
}

@paulhauner paulhauner added A1 and removed A0 labels Oct 1, 2020
@pawanjay176 pawanjay176 self-assigned this Oct 16, 2020
@pawanjay176
Copy link
Member

Taking this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants