lighthouse/validator_client/src
Michael Sproul 3486d6a809 Use OS file locks in validator client (#1958)
## Issue Addressed

Closes #1823

## Proposed Changes

* Use OS-level file locking for validator keystores, eliminating problems with lockfiles lingering after ungraceful shutdowns (`SIGKILL`, power outage). I'm using the `fs2` crate because it's cross-platform (unlike `file-lock`), and it seems to have the most downloads on crates.io.
* Deprecate + disable `--delete-lockfiles` CLI param, it's no longer necessary
* Delete the `validator_dir::Manager`, as it was mostly dead code and was only used in the `validator list` command, which has been rewritten to read the validator definitions YAML instead.

## Additional Info

Tested on:

- [x] Linux
- [x] macOS
- [x] Docker Linux
- [x] Docker macOS
- [ ] Windows
2020-11-26 11:25:46 +00:00
..
http_api Use OS file locks in validator client (#1958) 2020-11-26 11:25:46 +00:00
http_metrics Add metrics to VC (#1954) 2020-11-26 01:10:51 +00:00
attestation_service.rs Add metrics to VC (#1954) 2020-11-26 01:10:51 +00:00
block_service.rs Add metrics to VC (#1954) 2020-11-26 01:10:51 +00:00
cli.rs Use OS file locks in validator client (#1958) 2020-11-26 11:25:46 +00:00
config.rs Use OS file locks in validator client (#1958) 2020-11-26 11:25:46 +00:00
duties_service.rs Add metrics to VC (#1954) 2020-11-26 01:10:51 +00:00
fork_service.rs Add metrics to VC (#1954) 2020-11-26 01:10:51 +00:00
initialized_validators.rs Use OS file locks in validator client (#1958) 2020-11-26 11:25:46 +00:00
is_synced.rs Implement standard eth2.0 API (#1569) 2020-10-01 11:12:36 +10:00
key_cache.rs Implement key cache to reduce keystore loading times for validator_client (#1695) 2020-10-05 10:50:43 +00:00
lib.rs Use OS file locks in validator client (#1958) 2020-11-26 11:25:46 +00:00
notifier.rs Implement VC API (#1657) 2020-10-02 09:42:19 +00:00
validator_duty.rs Standard beacon api updates (#1831) 2020-11-09 23:13:56 +00:00
validator_store.rs Add metrics to VC (#1954) 2020-11-26 01:10:51 +00:00