lighthouse-pulse/common
Pawan Dhananjay 99737c551a Improve eth1 fallback logging (#2490)
## Issue Addressed

Resolves #2487 

## Proposed Changes

Logs a message once in every invocation of `Eth1Service::update` method if the primary endpoint is unavailable for some reason. 

e.g.
```log
Aug 03 00:09:53.517 WARN Error connecting to eth1 node endpoint  action: trying fallbacks, endpoint: http://localhost:8545/, service: eth1_rpc
Aug 03 00:09:56.959 INFO Fetched data from fallback              fallback_number: 1, service: eth1_rpc
```

The main aim of this PR is to have an accompanying message to the "action: trying fallbacks" error message that is returned when checking the endpoint for liveness. This is mainly to indicate to the user that the fallback was live and reachable. 

## Additional info
This PR is not meant to be a catch all for all cases where the primary endpoint failed. For instance, this won't log anything if the primary node was working fine during endpoint liveness checking and failed during deposit/block fetching. This is done intentionally to reduce number of logs while initial deposit/block sync and to avoid more complicated logic.
2021-08-30 00:51:26 +00:00
..
account_utils Upgrade dependencies (#2513) 2021-08-17 01:00:24 +00:00
clap_utils Tune GNU malloc (#2299) 2021-05-28 05:59:45 +00:00
compare_fields Check for unused deps in CI (#1262) 2020-06-14 10:59:50 +10:00
compare_fields_derive Update external deps (#1711) 2020-10-05 08:22:19 +00:00
deposit_contract Allow specifying alternative url for deposit_contract (#2295) 2021-04-16 06:47:34 +00:00
directory fix default network handling (#2029) 2020-12-08 05:41:10 +00:00
eth2 Always require auth header in VC (#2517) 2021-08-18 01:31:28 +00:00
eth2_config Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
eth2_interop_keypairs Fix new clippy lints (#2036) 2020-12-03 01:10:26 +00:00
eth2_network_config Add Altair fork epoch for Prater (#2537) 2021-08-26 09:42:23 +00:00
eth2_wallet_manager Rust 1.54.0 lints (#2483) 2021-07-30 01:11:47 +00:00
fallback Improve eth1 fallback logging (#2490) 2021-08-30 00:51:26 +00:00
filesystem Enable Compatibility with Windows (#2333) 2021-05-19 23:05:16 +00:00
hashset_delay Upgrade dependencies (#2513) 2021-08-17 01:00:24 +00:00
lighthouse_metrics [Altair] Sync committee pools (#2321) 2021-07-15 00:52:02 +00:00
lighthouse_version v1.5.1 (#2544) 2021-08-27 01:58:19 +00:00
lockfile Enable Compatibility with Windows (#2333) 2021-05-19 23:05:16 +00:00
logging Rust 1.54.0 lints (#2483) 2021-07-30 01:11:47 +00:00
lru_cache Keep track of failed head chains and prevent re-lookups (#1534) 2020-08-18 03:54:09 +00:00
malloc_utils Modify Malloc Tuning (#2398) 2021-06-09 02:30:06 +00:00
monitoring_api Upgrade dependencies (#2513) 2021-08-17 01:00:24 +00:00
remote_signer_consumer Upgrade dependencies (#2513) 2021-08-17 01:00:24 +00:00
sensitive_url Add SensitiveUrl to redact user secrets from endpoints (#2326) 2021-05-04 01:59:51 +00:00
slot_clock Add specific log and metric for delayed blocks (#2308) 2021-04-13 02:16:59 +00:00
target_check Improve compilation error on 32-bit (#2424) 2021-06-30 04:56:22 +00:00
task_executor Upgrade dependencies (#2513) 2021-08-17 01:00:24 +00:00
test_random_derive Update external deps (#1711) 2020-10-05 08:22:19 +00:00
validator_dir Upgrade dependencies (#2513) 2021-08-17 01:00:24 +00:00
warp_utils Upgrade dependencies (#2513) 2021-08-17 01:00:24 +00:00
README.md Directory Restructure (#1163) 2020-05-18 21:24:23 +10:00

eth2

Common crates containing eth2-specific logic.