mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2024-12-22 19:50:37 +00:00
e26da35cbf
## Issue Addressed
NA
## Proposed Changes
- Introduces the `valdiator_definitions.yml` file which serves as an explicit list of validators that should be run by the validator client.
- Removes `--strict` flag, split into `--strict-lockfiles` and `--disable-auto-discover`
- Adds a "Validator Management" page to the book.
- Adds the `common/account_utils` crate which contains some logic that was starting to duplicate across the codebase.
The new docs for this feature are the best description of it (apart from the code, I guess): 9cb87e93ce/book/src/validator-management.md
## API Changes
This change should be transparent for *most* existing users. If the `valdiator_definitions.yml` doesn't exist then it will be automatically generated using a method that will detect all the validators in their `validators_dir`.
Users will have issues if they are:
1. Using `--strict`.
1. Have keystores in their `~/.lighthouse/validators` directory that weren't being detected by the current keystore discovery method.
For users with (1), the VC will refuse to start because the `--strict` flag has been removed. They will be forced to review `--help` and choose an equivalent flag.
For users with (2), this seems fairly unlikely and since we're only in testnets there's no *real* value on the line here. I'm happy to take the risk, it would be a different case for mainnet.
## Additional Info
This PR adds functionality we will need for #1347.
## TODO
- [x] Reconsider flags
- [x] Move doc into a more reasonable chapter.
- [x] Check for compile warnings.
33 lines
1.1 KiB
TOML
33 lines
1.1 KiB
TOML
[package]
|
|
name = "account_manager"
|
|
version = "0.0.1"
|
|
authors = ["Paul Hauner <paul@paulhauner.com>", "Luke Anderson <luke@sigmaprime.io>"]
|
|
edition = "2018"
|
|
|
|
[dependencies]
|
|
bls = { path = "../crypto/bls" }
|
|
clap = "2.33.0"
|
|
slog = "2.5.2"
|
|
slog-term = "2.5.0"
|
|
slog-async = "2.5.0"
|
|
types = { path = "../consensus/types" }
|
|
dirs = "2.0.2"
|
|
environment = { path = "../lighthouse/environment" }
|
|
deposit_contract = { path = "../common/deposit_contract" }
|
|
libc = "0.2.65"
|
|
eth2_ssz = "0.1.2"
|
|
eth2_ssz_derive = "0.1.0"
|
|
hex = "0.4.2"
|
|
rayon = "1.3.0"
|
|
eth2_testnet_config = { path = "../common/eth2_testnet_config" }
|
|
web3 = "0.11.0"
|
|
futures = { version = "0.3.5", features = ["compat"] }
|
|
clap_utils = { path = "../common/clap_utils" }
|
|
eth2_wallet = { path = "../crypto/eth2_wallet" }
|
|
eth2_wallet_manager = { path = "../common/eth2_wallet_manager" }
|
|
rand = "0.7.2"
|
|
validator_dir = { path = "../common/validator_dir", features = ["unencrypted_keys"] }
|
|
tokio = { version = "0.2.21", features = ["full"] }
|
|
eth2_keystore = { path = "../crypto/eth2_keystore" }
|
|
account_utils = { path = "../common/account_utils" }
|