mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-03 09:47:38 +00:00
3052db29fe
## Issue Addressed
Closes https://github.com/sigp/lighthouse/issues/4291, part of #3613.
## Proposed Changes
- Implement the `el_offline` field on `/eth/v1/node/syncing`. We set `el_offline=true` if:
- The EL's internal status is `Offline` or `AuthFailed`, _or_
- The most recent call to `newPayload` resulted in an error (more on this in a moment).
- Use the `el_offline` field in the VC to mark nodes with offline ELs as _unsynced_. These nodes will still be used, but only after synced nodes.
- Overhaul the usage of `RequireSynced` so that `::No` is used almost everywhere. The `--allow-unsynced` flag was broken and had the opposite effect to intended, so it has been deprecated.
- Add tests for the EL being offline on the upcheck call, and being offline due to the newPayload check.
## Why track `newPayload` errors?
Tracking the EL's online/offline status is too coarse-grained to be useful in practice, because:
- If the EL is timing out to some calls, it's unlikely to timeout on the `upcheck` call, which is _just_ `eth_syncing`. Every failed call is followed by an upcheck [here](
|
||
---|---|---|
.. | ||
duties_service | ||
http_api | ||
http_metrics | ||
signing_method | ||
attestation_service.rs | ||
beacon_node_fallback.rs | ||
block_service.rs | ||
check_synced.rs | ||
cli.rs | ||
config.rs | ||
doppelganger_service.rs | ||
duties_service.rs | ||
graffiti_file.rs | ||
initialized_validators.rs | ||
key_cache.rs | ||
latency.rs | ||
lib.rs | ||
notifier.rs | ||
preparation_service.rs | ||
signing_method.rs | ||
sync_committee_service.rs | ||
validator_store.rs |