lighthouse/beacon_node/http_api
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
..
src Improve eth1 block sync (#2008) 2020-11-30 20:29:17 +00:00
tests Upgrade to tokio 0.3 (#1839) 2020-11-28 05:30:57 +00:00
Cargo.toml Upgrade to tokio 0.3 (#1839) 2020-11-28 05:30:57 +00:00