lighthouse/beacon_node/eth1/src
Paul Hauner 77f3539654 Improve eth1 block sync (#2008)
## Issue Addressed

NA

## Proposed Changes

- Log about eth1 whilst waiting for genesis.
- For the block and deposit caches, update them after each download instead of when *all* downloads are complete.
  - This prevents the case where a single timeout error can cause us to drop *all* previously download blocks/deposits.
- Set `max_log_requests_per_update` to avoid timeouts due to very large log counts in a response.
- Set `max_blocks_per_update` to prevent a single update of the block cache to download an unreasonable number of blocks.
  - This shouldn't have any affect in normal use, it's just a safe-guard against bugs.
- Increase the timeout for eth1 calls from 15s to 60s, as per @pawanjay176's experience with Infura.

## Additional Info

NA
2020-11-30 20:29:17 +00:00
..
block_cache.rs Return eth1-related data via the API (#1797) 2020-11-02 00:37:30 +00:00
deposit_cache.rs Return eth1-related data via the API (#1797) 2020-11-02 00:37:30 +00:00
deposit_log.rs Ensure deposit signatures do not use aggregate functions (#1935) 2020-11-20 03:37:20 +00:00
http.rs Validate eth1 chain id (#1877) 2020-11-16 23:10:42 +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 Improve eth1 block sync (#2008) 2020-11-30 20:29:17 +00:00