lighthouse/beacon_node
Pawan Dhananjay 7933596c89 Add a purge-eth1-cache cli option (#2039)
## Issue

Some eth1 clients are missing deposit logs on mainnet for multiple reasons (not fully synced, eth1 client issues) because of which we are getting `FailedToInsertDeposit` errors.
Ideally, LH should pick up where it left off after pointing it to a nice eth1 client endpoint (which has all deposits). 

However, I have seen instances where LH keeps getting `FailedToInsertDeposit` even after switching to a good endpoint. Only deleting the beacon directory (which also wipes the eth1 cache) and resyncing the eth1 caches seems to be the solution. This wouldn't be great for mainnet if you have to sync your beacon node again as well.

## Proposed Changes

Add a `--purge-eth1-db` option which just wipes the eth1 cache and doesn't touch the rest of the beacon db. 
Still need to investigate if and why LH isn't picking up where it left off for the deposit logs sync, but I think it would be good to have an option to just delete eth1 caches regardless.
2020-12-04 05:03:28 +00:00
..
beacon_chain Server sent events (#1920) 2020-12-04 00:18:58 +00:00
client Add a purge-eth1-cache cli option (#2039) 2020-12-04 05:03:28 +00:00
eth1 Add a purge-eth1-cache cli option (#2039) 2020-12-04 05:03:28 +00:00
eth2_libp2p Fingerprint new client identify agent string (#2027) 2020-12-03 22:07:14 +00:00
genesis Upgrade to tokio 0.3 (#1839) 2020-11-28 05:30:57 +00:00
http_api Server sent events (#1920) 2020-12-04 00:18:58 +00:00
http_metrics Add Content-Type to metrics server (#2019) 2020-12-01 00:04:46 +00:00
network Server sent events (#1920) 2020-12-04 00:18:58 +00:00
operation_pool Update pool/attestations and committees endpoints (#1899) 2020-11-18 23:31:39 +00:00
src Add a purge-eth1-cache cli option (#2039) 2020-12-04 05:03:28 +00:00
store Fix new clippy lints (#2036) 2020-12-03 01:10:26 +00:00
tests Upgrade to tokio 0.3 (#1839) 2020-11-28 05:30:57 +00:00
timer Fix new clippy lints (#2036) 2020-12-03 01:10:26 +00:00
websocket_server Server sent events (#1920) 2020-12-04 00:18:58 +00:00
Cargo.toml Bump version to v1.0.3 (#2024) 2020-11-30 22:55:10 +00:00