lighthouse/beacon_node/eth1/src
Mac L 0847986936 Reduce outbound requests to eth1 endpoints (#2340)
## Issue Addressed

#2282 

## Proposed Changes

Reduce the outbound requests made to eth1 endpoints by caching the results from `eth_chainId` and `net_version`.
Further reduce the overall request count by increasing `auto_update_interval_millis` from `7_000` (7 seconds) to `60_000` (1 minute). 
This will result in a reduction from ~2000 requests per hour to 360 requests per hour (during normal operation). A reduction of 82%.

## Additional Info

If an endpoint fails, its state is dropped from the cache and the `eth_chainId` and `net_version` calls will be made for that endpoint again during the regular update cycle (once per minute) until it is back online.


Co-authored-by: Paul Hauner <paul@paulhauner.com>
2021-05-31 04:18:18 +00:00
..
block_cache.rs Return eth1-related data via the API (#1797) 2020-11-02 00:37:30 +00:00
deposit_cache.rs Fix clippy errors on tests (#2160) 2021-01-28 23:31:06 +00:00
deposit_log.rs Fix new clippy lints (#2036) 2020-12-03 01:10:26 +00:00
http.rs Updated to comply with new clippy formatting rules (#2336) 2021-05-10 00:53:09 +00:00
inner.rs Reduce outbound requests to eth1 endpoints (#2340) 2021-05-31 04:18:18 +00:00
lib.rs Fallback nodes for eth1 access (#1918) 2020-11-27 08:37:44 +00:00
metrics.rs Monitoring service api (#2251) 2021-05-26 05:58:41 +00:00
service.rs Reduce outbound requests to eth1 endpoints (#2340) 2021-05-31 04:18:18 +00:00