lighthouse-pulse/beacon_node
Mac L b3c7e59a5b Adjust beacon node timeouts for validator client HTTP requests (#2352)
## Issue Addressed

Resolves #2313 

## Proposed Changes

Provide `BeaconNodeHttpClient` with a dedicated `Timeouts` struct.
This will allow granular adjustment of the timeout duration for different calls made from the VC to the BN. These can either be a constant value, or as a ratio of the slot duration.

Improve timeout performance by using these adjusted timeout duration's only whenever a fallback endpoint is available.

Add a CLI flag called `use-long-timeouts` to revert to the old behavior.

## Additional Info

Additionally set the default `BeaconNodeHttpClient` timeouts to the be the slot duration of the network, rather than a constant 12 seconds. This will allow it to adjust to different network specifications.


Co-authored-by: Paul Hauner <paul@paulhauner.com>
2021-07-12 01:47:48 +00:00
..
beacon_chain Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
client Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
eth1 Capture a missed VC error (#2436) 2021-07-09 03:20:24 +00:00
eth2_libp2p Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
genesis Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
http_api Adjust beacon node timeouts for validator client HTTP requests (#2352) 2021-07-12 01:47:48 +00:00
http_metrics Tune GNU malloc (#2299) 2021-05-28 05:59:45 +00:00
network Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
operation_pool Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
src Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
store Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
tests Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
timer Update to tokio 1.1 (#2172) 2021-02-10 23:29:49 +00:00
websocket_server Server sent events (#1920) 2020-12-04 00:18:58 +00:00
Cargo.toml v1.4.0 (#2402) 2021-06-10 01:44:49 +00:00