lighthouse/beacon_node/http_api/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
..
beacon_proposer_cache.rs Standard beacon api updates (#1831) 2020-11-09 23:13:56 +00:00
block_id.rs Implement standard eth2.0 API (#1569) 2020-10-01 11:12:36 +10:00
lib.rs Improve eth1 block sync (#2008) 2020-11-30 20:29:17 +00:00
metrics.rs Implement standard eth2.0 API (#1569) 2020-10-01 11:12:36 +10:00
state_id.rs Implement standard eth2.0 API (#1569) 2020-10-01 11:12:36 +10:00
validator_inclusion.rs Implement standard eth2.0 API (#1569) 2020-10-01 11:12:36 +10:00