lighthouse/beacon_node/eth1/src
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
..
block_cache.rs Return eth1-related data via the API (#1797) 2020-11-02 00:37:30 +00:00
deposit_cache.rs Minor fixes (#2038) 2020-12-03 01:10:28 +00:00
deposit_log.rs Fix new clippy lints (#2036) 2020-12-03 01:10:26 +00:00
http.rs Fix new clippy lints (#2036) 2020-12-03 01:10:26 +00:00
inner.rs Return eth1-related data via the API (#1797) 2020-11-02 00:37:30 +00:00
lib.rs Fallback nodes for eth1 access (#1918) 2020-11-27 08:37:44 +00:00
metrics.rs Fallback nodes for eth1 access (#1918) 2020-11-27 08:37:44 +00:00
service.rs Add a purge-eth1-cache cli option (#2039) 2020-12-04 05:03:28 +00:00