1373dcf076
## Issue Addressed
Addresses #2557
## Proposed Changes
Adds the `lighthouse validator-manager` command, which provides:
- `lighthouse validator-manager create`
- Creates a `validators.json` file and a `deposits.json` (same format as https://github.com/ethereum/staking-deposit-cli)
- `lighthouse validator-manager import`
- Imports validators from a `validators.json` file to the VC via the HTTP API.
- `lighthouse validator-manager move`
- Moves validators from one VC to the other, utilizing only the VC API.
## Additional Info
In 98bcb947c I've reduced some VC `ERRO` and `CRIT` warnings to `WARN` or `DEBG` for the case where a pubkey is missing from the validator store. These were being triggered when we removed a validator but still had it in caches. It seems to me that `UnknownPubkey` will only happen in the case where we've removed a validator, so downgrading the logs is prudent. All the logs are `DEBG` apart from attestations and blocks which are `WARN`. I thought having *some* logging about this condition might help us down the track.
In 856cd7e37d
I've made the VC delete the corresponding password file when it's deleting a keystore. This seemed like nice hygiene. Notably, it'll only delete that password file after it scans the validator definitions and finds that no other validator is also using that password file.
32 lines
1.2 KiB
TOML
32 lines
1.2 KiB
TOML
[package]
|
|
name = "account_manager"
|
|
version = "0.3.5"
|
|
authors = ["Paul Hauner <paul@paulhauner.com>", "Luke Anderson <luke@sigmaprime.io>"]
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
bls = { path = "../crypto/bls" }
|
|
clap = "2.33.3"
|
|
types = { path = "../consensus/types" }
|
|
environment = { path = "../lighthouse/environment" }
|
|
eth2_network_config = { path = "../common/eth2_network_config" }
|
|
clap_utils = { path = "../common/clap_utils" }
|
|
directory = { path = "../common/directory" }
|
|
eth2_wallet = { path = "../crypto/eth2_wallet" }
|
|
eth2_wallet_manager = { path = "../common/eth2_wallet_manager" }
|
|
validator_dir = { path = "../common/validator_dir" }
|
|
tokio = { version = "1.14.0", 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" }
|
|
filesystem = { path = "../common/filesystem" }
|
|
sensitive_url = { path = "../common/sensitive_url" }
|
|
serde = { version = "1.0.116", features = ["derive"] }
|
|
serde_json = "1.0.58"
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3.1.0"
|