lighthouse-pulse/validator_client/src
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
..
http_api Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
http_metrics Adjust beacon node timeouts for validator client HTTP requests (#2352) 2021-07-12 01:47:48 +00:00
attestation_service.rs Adjust beacon node timeouts for validator client HTTP requests (#2352) 2021-07-12 01:47:48 +00:00
beacon_node_fallback.rs Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
block_service.rs Adjust beacon node timeouts for validator client HTTP requests (#2352) 2021-07-12 01:47:48 +00:00
check_synced.rs Remove duplicate log in BN fallback (#2116) 2021-01-06 03:01:48 +00:00
cli.rs Adjust beacon node timeouts for validator client HTTP requests (#2352) 2021-07-12 01:47:48 +00:00
config.rs Adjust beacon node timeouts for validator client HTTP requests (#2352) 2021-07-12 01:47:48 +00:00
duties_service.rs Adjust beacon node timeouts for validator client HTTP requests (#2352) 2021-07-12 01:47:48 +00:00
fork_service.rs Adjust beacon node timeouts for validator client HTTP requests (#2352) 2021-07-12 01:47:48 +00:00
graffiti_file.rs rust 1.53.0 updates (#2411) 2021-06-18 05:58:01 +00:00
initialized_validators.rs Monitoring service api (#2251) 2021-05-26 05:58:41 +00:00
key_cache.rs Enable Compatibility with Windows (#2333) 2021-05-19 23:05:16 +00:00
lib.rs Adjust beacon node timeouts for validator client HTTP requests (#2352) 2021-07-12 01:47:48 +00:00
notifier.rs Monitoring service api (#2251) 2021-05-26 05:58:41 +00:00
validator_store.rs Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00