lighthouse/beacon_node
Paul Hauner dffc56ef1d
Fix validator lockfiles (#1586)
## Issue Addressed

- Resolves #1313 

## Proposed Changes

Changes the way we start the validator client and beacon node to ensure that we cleanly drop the validator keystores (which therefore ensures we cleanup their lockfiles).

Previously we were holding the validator keystores in a tokio task that was being forcefully killed (i.e., without `Drop`). Now, we hold them in a task that can gracefully handle a shutdown.

Also, switches the `--strict-lockfiles` flag to `--delete-lockfiles`. This means two things:

1. We are now strict on lockfiles by default (before we weren't).
1. There's a simple way for people delete the lockfiles if they experience a crash.

## Additional Info

I've only given the option to ignore *and* delete lockfiles, not just ignore them. I can't see a strong need for ignore-only but could easily add it, if the need arises.

I've flagged this as `api-breaking` since users that have lockfiles lingering around will be required to supply `--delete-lockfiles` next time they run.
2020-10-01 11:12:35 +10:00
..
beacon_chain Allow truncation of pubkey cache on creation (#1686) 2020-09-30 04:42:52 +00:00
client Beacon node does not quit on eth1 errors (#1663) 2020-09-25 00:43:45 +00:00
eth1 Beacon node does not quit on eth1 errors (#1663) 2020-09-25 00:43:45 +00:00
eth2_libp2p Update boot-node and discovery (#1682) 2020-09-29 18:28:29 +10:00
genesis Lighthouse crate v0.2.0 bump (#1450) 2020-08-06 03:43:05 +00:00
network Networking bug fixes (#1684) 2020-09-29 18:28:15 +10:00
operation_pool Lighthouse crate v0.2.0 bump (#1450) 2020-08-06 03:43:05 +00:00
rest_api minimize the number of places we are calling update_pubkey_cache (#1626) 2020-09-23 01:19:56 +00:00
src Fix validator lockfiles (#1586) 2020-10-01 11:12:35 +10:00
store Update LevelDB to v0.8.6, removing patch (#1636) 2020-09-21 11:53:53 +00:00
tests Improve tokio task execution (#1181) 2020-06-04 21:48:05 +10:00
timer Lighthouse crate v0.2.0 bump (#1450) 2020-08-06 03:43:05 +00:00
websocket_server Lighthouse crate v0.2.0 bump (#1450) 2020-08-06 03:43:05 +00:00
Cargo.toml Version bump and cargo update (#1683) 2020-09-29 18:29:04 +10:00