lighthouse/book/src
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
..
css Make API friendly to block explorers (#702) 2019-12-19 11:45:28 +11:00
http Bump all spec tags to v0.12.1 (#1275) 2020-06-19 11:18:27 +10:00
js Fix altona deposit contract address (#1317) 2020-06-30 08:44:55 +10:00
advanced_database.md Document the freezer DB space-time trade-off (#808) 2020-01-20 10:01:58 +11:00
advanced.md Document the freezer DB space-time trade-off (#808) 2020-01-20 10:01:58 +11:00
api.md Refactor docs into mdbook (#547) 2019-10-02 11:04:56 +10:00
become-a-validator-docker.md Update docs to suit sigp/docker-compose updates (#1235) 2020-06-01 21:18:48 +10:00
become-a-validator-source.md Correct book links (#1338) 2020-07-07 17:28:59 +10:00
become-a-validator.md Update docs for Altona (#1304) 2020-06-28 16:04:03 +10:00
cli.md Minor useability updates (#1005) 2020-04-15 17:46:03 +10:00
contributing.md Update CONTRIBUTING.md (#751) 2020-01-03 10:45:53 +11:00
docker.md Book corrections to allow http api access for docker use (#911) 2020-03-18 16:42:49 +11:00
faq.md Correct book links (#1338) 2020-07-07 17:28:59 +10:00
http.md Update HTTP API docs (#1010) 2020-04-16 20:31:43 +10:00
installation.md Add raspberry pi docs (#1252) 2020-06-10 17:11:57 +10:00
intro.md Fix issues with testnet dir, update docs (#992) 2020-04-17 17:49:29 +10:00
key-managment.md Doc updates (#1226) 2020-06-01 11:34:16 +10:00
local-testnets.md Update local testnet scripts, fix eth1 sim (#1184) 2020-05-26 18:30:44 +10:00
pi.md Add raspberry pi docs (#1252) 2020-06-10 17:11:57 +10:00
setup.md Directory Restructure (#1163) 2020-05-18 21:24:23 +10:00
SUMMARY.md Introduce validator definition file for VC (#1357) 2020-07-22 09:34:55 +00:00
validator-create.md Doc updates (#1226) 2020-06-01 11:34:16 +10:00
validator-management.md Introduce validator definition file for VC (#1357) 2020-07-22 09:34:55 +00:00
wallet-create.md Wallet-based, encrypted key management (#1138) 2020-05-18 19:01:45 +10:00
websockets.md Testnet5 docs (#892) 2020-03-05 10:12:34 +11:00