56f9394141
## Issue Addressed Resolve #1652 ## Proposed Changes Adds a cli option for voluntary exits. The flow is similar to prysm's where after entering the password for the validator keystore (or load password from `secrets` if present) the user is given multiple warnings about the operation being irreversible, then redirected to the docs webpage(not added yet) which explains what a voluntary exit is and the consequences of exiting and then prompted to enter a phrase from the docs webpage as a final confirmation. Example usage ``` $ lighthouse --testnet zinken account validator exit --validator <validator-pubkey> --beacon-node http://localhost:5052 Running account manager for zinken testnet validator-dir path: "..." Enter the keystore password: for validator in ... Password is correct Publishing a voluntary exit for validator: ... WARNING: This is an irreversible operation WARNING: Withdrawing staked eth will not be possible until Eth1/Eth2 merge Please visit [website] to make sure you understand the implications of a voluntary exit. Enter the phrase from the above URL to confirm the voluntary exit: Exit my validator Published voluntary exit for validator ... ``` ## Additional info Not sure if we should have batch exits (`--validator all`) option for exiting all the validators in the `validators` directory. I'm slightly leaning towards having only single exits but don't have a strong preference.
40 lines
1.3 KiB
TOML
40 lines
1.3 KiB
TOML
[package]
|
|
name = "account_manager"
|
|
version = "0.3.2"
|
|
authors = ["Paul Hauner <paul@paulhauner.com>", "Luke Anderson <luke@sigmaprime.io>"]
|
|
edition = "2018"
|
|
|
|
[dependencies]
|
|
bls = { path = "../crypto/bls" }
|
|
clap = "2.33.3"
|
|
slog = "2.5.2"
|
|
slog-term = "2.6.0"
|
|
slog-async = "2.5.0"
|
|
types = { path = "../consensus/types" }
|
|
dirs = "3.0.1"
|
|
environment = { path = "../lighthouse/environment" }
|
|
deposit_contract = { path = "../common/deposit_contract" }
|
|
libc = "0.2.79"
|
|
eth2_ssz = "0.1.2"
|
|
eth2_ssz_derive = "0.1.0"
|
|
hex = "0.4.2"
|
|
rayon = "1.4.1"
|
|
eth2_testnet_config = { path = "../common/eth2_testnet_config" }
|
|
futures = { version = "0.3.5", features = ["compat"] }
|
|
clap_utils = { path = "../common/clap_utils" }
|
|
directory = { path = "../common/directory" }
|
|
eth2_wallet = { path = "../crypto/eth2_wallet" }
|
|
eth2_wallet_manager = { path = "../common/eth2_wallet_manager" }
|
|
rand = "0.7.3"
|
|
validator_dir = { path = "../common/validator_dir" }
|
|
tokio = { version = "0.2.22", features = ["full"] }
|
|
eth2_keystore = { path = "../crypto/eth2_keystore" }
|
|
account_utils = { path = "../common/account_utils" }
|
|
slashing_protection = { path = "../validator_client/slashing_protection" }
|
|
eth2 = {path = "../common/eth2"}
|
|
safe_arith = {path = "../consensus/safe_arith"}
|
|
slot_clock = { path = "../common/slot_clock" }
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3.1.0"
|