lighthouse/validator_client/src
Mac L 979b73c9b6 Add API endpoint to get VC graffiti (#3779)
## Issue Addressed

#3766

## Proposed Changes

Adds an endpoint to get the graffiti that will be used for the next block proposal for each validator.

## Usage
```bash
curl -H "Authorization: Bearer api-token" http://localhost:9095/lighthouse/ui/graffiti | jq
```

```json
{
  "data": {
    "0x81283b7a20e1ca460ebd9bbd77005d557370cabb1f9a44f530c4c4c66230f675f8df8b4c2818851aa7d77a80ca5a4a5e": "mr f was here",
    "0xa3a32b0f8b4ddb83f1a0a853d81dd725dfe577d4f4c3db8ece52ce2b026eca84815c1a7e8e92a4de3d755733bf7e4a9b": "mr v was here",
    "0x872c61b4a7f8510ec809e5b023f5fdda2105d024c470ddbbeca4bc74e8280af0d178d749853e8f6a841083ac1b4db98f": null
  }
}
```

## Additional Info

This will only return graffiti that the validator client knows about.
That is from these 3 sources:
1. Graffiti File
2. validator_definitions.yml
3. The `--graffiti` flag on the VC

If the graffiti is set on the BN, it will not be returned. This may warrant an additional endpoint on the BN side which can be used in the event the endpoint returns `null`.
2022-12-09 09:20:13 +00:00
..
duties_service Validator registration request failures do not cause us to mark BNs offline (#3488) 2022-08-29 11:35:59 +00:00
http_api Add API endpoint to get VC graffiti (#3779) 2022-12-09 09:20:13 +00:00
http_metrics Builder Specs v0.2.0 (#3134) 2022-07-30 00:22:37 +00:00
signing_method Add Merge support to web3signer validators (#3318) 2022-07-15 14:16:00 +00:00
attestation_service.rs Validator registration request failures do not cause us to mark BNs offline (#3488) 2022-08-29 11:35:59 +00:00
beacon_node_fallback.rs Publish subscriptions to all beacon nodes (#3529) 2022-09-28 19:53:35 +00:00
block_service.rs Add API endpoint to get VC graffiti (#3779) 2022-12-09 09:20:13 +00:00
check_synced.rs Remove duplicate log in BN fallback (#2116) 2021-01-06 03:01:48 +00:00
cli.rs Publish subscriptions to all beacon nodes (#3529) 2022-09-28 19:53:35 +00:00
config.rs Publish subscriptions to all beacon nodes (#3529) 2022-09-28 19:53:35 +00:00
doppelganger_service.rs Validator registration request failures do not cause us to mark BNs offline (#3488) 2022-08-29 11:35:59 +00:00
duties_service.rs Publish subscriptions to all beacon nodes (#3529) 2022-09-28 19:53:35 +00:00
graffiti_file.rs Rust 1.54.0 lints (#2483) 2021-07-30 01:11:47 +00:00
initialized_validators.rs Add API endpoint to get VC graffiti (#3779) 2022-12-09 09:20:13 +00:00
key_cache.rs Replace OpenOptions::new with File::options to be readable (#3059) 2022-03-07 06:30:18 +00:00
lib.rs Add API endpoint to get VC graffiti (#3779) 2022-12-09 09:20:13 +00:00
notifier.rs Add new VC metrics for beacon node availability (#3193) 2022-05-26 02:05:16 +00:00
preparation_service.rs Publish subscriptions to all beacon nodes (#3529) 2022-09-28 19:53:35 +00:00
signing_method.rs Register validator api (#3194) 2022-06-30 00:49:21 +00:00
sync_committee_service.rs Sync committee sign bn fallback (#3624) 2022-11-13 22:40:43 +00:00
validator_store.rs Standard gas limit api (#3450) 2022-08-15 01:30:58 +00:00