lighthouse/common
Paul Hauner e26da35cbf Introduce validator definition file for VC (#1357)
## 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.
2020-07-22 09:34:55 +00:00
..
account_utils Introduce validator definition file for VC (#1357) 2020-07-22 09:34:55 +00:00
clap_utils Consensus updates for v0.12 (#1228) 2020-06-03 14:56:54 +10:00
compare_fields Check for unused deps in CI (#1262) 2020-06-14 10:59:50 +10:00
compare_fields_derive Directory Restructure (#1163) 2020-05-18 21:24:23 +10:00
deposit_contract Add checksum verification for deposit contract (#1330) 2020-07-06 11:56:44 +10:00
eth2_config Directory Restructure (#1163) 2020-05-18 21:24:23 +10:00
eth2_interop_keypairs Update deps (#1322) 2020-07-06 11:55:56 +10:00
eth2_testnet_config Add more Altona boot ENR (#1310) 2020-06-29 16:51:26 +10:00
eth2_wallet_manager Directory Restructure (#1163) 2020-05-18 21:24:23 +10:00
hashset_delay Activate peer scoring (#1284) 2020-07-07 10:13:16 +10:00
lighthouse_metrics Update deps (#1322) 2020-07-06 11:55:56 +10:00
logging Directory Restructure (#1163) 2020-05-18 21:24:23 +10:00
remote_beacon_node Use all attestation subnets (#1257) 2020-06-18 19:11:03 +10:00
rest_types Fix race condition in VC block proposal service (#1282) 2020-07-07 14:03:21 +10:00
slot_clock Update deps (#1322) 2020-07-06 11:55:56 +10:00
test_random_derive Directory Restructure (#1163) 2020-05-18 21:24:23 +10:00
validator_dir Loose VC lockfile and slashing protection registers (#1314) 2020-06-29 21:04:07 +10:00
README.md Directory Restructure (#1163) 2020-05-18 21:24:23 +10:00

eth2

Common crates containing eth2-specific logic.