sigp / lighthouse

Ethereum consensus client in Rust
https://lighthouse.sigmaprime.io/
Apache License 2.0
2.96k stars 763 forks source link

Add `--exit-epoch` flag to validator-manager #4303

Open xenowits opened 1 year ago

xenowits commented 1 year ago

Description

This is a feature request to add an --exit-epoch flag to the lighthouse account validator exit command.

This feature allows the user to set a specific epoch for the voluntary exit. It is supported by other validator clients such as teku, lodestar and nimbus.

Version

None.

Present Behaviour

Currently, a user can't specify the desired epoch to exit and the lighthouse VC broadcasts exit message with the current epoch.

Expected Behaviour

The validator client should allow a user to set a desired exit epoch.

Steps to resolve

michaelsproul commented 1 year ago

@xenowits As a workaround, try using the keymanager API for exits: https://ethereum.github.io/keymanager-APIs/?urls.primaryName=dev#/Voluntary%20Exit/signVoluntaryExit

Info on setting up the Lighthouse VC API can be found here: https://lighthouse-book.sigmaprime.io/api-vc.html

michaelsproul commented 1 year ago

This may also be already implemented by https://github.com/sigp/lighthouse/pull/3502, I'm not sure.

xenowits commented 1 year ago

This may also be already implemented by https://github.com/sigp/lighthouse/pull/3502, I'm not sure.

Thanks for the workaround!

But, do you think it is feasible to introduce this feature or are there some limitations?

michaelsproul commented 1 year ago

@xenowits It's definitely feasible. The lighthouse validator-manager is a new CLI that uses the API, so it would be super easy to include it there. We could also add it to the existing CLI easily enough, but would probably move people towards the validator-manager long term.

xenowits commented 1 year ago

okay, so the validator-manager is a new CLI feature that is not yet released i suppose?

Yeah, this subcommand would be cool to use for exits then 👍

xenowits commented 1 year ago

@michaelsproul is the lighthouse validator-manager command released?

michaelsproul commented 1 year ago

No, not yet. The PR hasn't merged to unstable yet