lighthouse/beacon_node
int88 90d562b3d4 add attestation inclusion distance in http api (#4148)
## Issue Addressed

#4097

## Proposed Changes

Add attestation inclusion distance in http api, extend `/lighthouse/ui/validator_metrics` to include it.

## Usage
```
curl -X POST "http://localhost:8001/lighthouse/ui/validator_metrics" -d '{"indices": [1]}' -H "Content-Type: application/json" | jq
```

```
{
  "data": {
    "validators": {
      "1": {
        "attestation_hits": 3,
        "attestation_misses": 1,
        "attestation_hit_percentage": 75,
        "attestation_head_hits": 3,
        "attestation_head_misses": 0,
        "attestation_head_hit_percentage": 100,
        "attestation_target_hits": 3,
        "attestation_target_misses": 0,
        "attestation_target_hit_percentage": 100,
        "attestation_inclusion_distance": 1
      }
    }
  }
}
```

## Additional Info

NA
2023-04-26 01:12:35 +00:00
..
beacon_chain add attestation inclusion distance in http api (#4148) 2023-04-26 01:12:35 +00:00
builder_client Set user agent on requests to builder (#4199) 2023-04-18 02:47:36 +00:00
client remove dup log (#4155) 2023-04-03 03:02:58 +00:00
eth1 exchangeCapabilities & Capella Readiness Logging (#3918) 2023-01-31 18:26:23 +01:00
execution_layer Fix Rust 1.69 lints (#4222) 2023-04-21 18:29:28 +00:00
genesis Fix the new BLS to execution change test 2023-01-25 15:47:07 +11:00
http_api add attestation inclusion distance in http api (#4148) 2023-04-26 01:12:35 +00:00
http_metrics Add content-type header to metrics server response (#3970) 2023-02-28 02:20:50 +00:00
lighthouse_network Add a flag to disable peer scoring (#4135) 2023-04-12 01:48:19 +00:00
network Check lateness of block before requeuing it (#4208) 2023-04-19 04:23:20 +00:00
operation_pool Use head state for exit verification (#4183) 2023-04-14 01:11:46 +00:00
src Set user agent on requests to builder (#4199) 2023-04-18 02:47:36 +00:00
store Remove Redundant Trait Bound (#4169) 2023-04-12 01:48:22 +00:00
tests Appease Clippy 1.68 and refactor http_api (#4068) 2023-03-13 01:40:03 +00:00
timer Use async code when interacting with EL (#3244) 2022-07-03 05:36:50 +00:00
Cargo.toml Release v4.1.0 (#4191) 2023-04-20 00:51:38 +00:00