lighthouse-pulse/beacon_node
realbigsean f6ec44f0dd Register validator api (#3194)
## Issue Addressed

Lays the groundwork for builder API changes by implementing the beacon-API's new `register_validator` endpoint

## Proposed Changes

- Add a routine in the VC that runs on startup (re-try until success), once per epoch or whenever `suggested_fee_recipient` is updated, signing `ValidatorRegistrationData` and sending it to the BN.
  -  TODO: `gas_limit` config options https://github.com/ethereum/builder-specs/issues/17
-  BN only sends VC registration data to builders on demand, but VC registration data *does update* the BN's prepare proposer cache and send an updated fcU to  a local EE. This is necessary for fee recipient consistency between the blinded and full block flow in the event of fallback.  Having the BN only send registration data to builders on demand gives feedback directly to the VC about relay status. Also, since the BN has no ability to sign these messages anyways (so couldn't refresh them if it wanted), and validator registration is independent of the BN head, I think this approach makes sense. 
- Adds upcoming consensus spec changes for this PR https://github.com/ethereum/consensus-specs/pull/2884
  -  I initially applied the bit mask based on a configured application domain.. but I ended up just hard coding it here instead because that's how it's spec'd in the builder repo. 
  -  Should application mask appear in the api?



Co-authored-by: realbigsean <sean@sigmaprime.io>
2022-06-30 00:49:21 +00:00
..
beacon_chain Extend block reward APIs (#3290) 2022-06-29 04:50:37 +00:00
client Unify execution layer endpoints (#3214) 2022-06-29 09:07:09 +00:00
eth1 Unify execution layer endpoints (#3214) 2022-06-29 09:07:09 +00:00
execution_layer Unify execution layer endpoints (#3214) 2022-06-29 09:07:09 +00:00
genesis Unify execution layer endpoints (#3214) 2022-06-29 09:07:09 +00:00
http_api Register validator api (#3194) 2022-06-30 00:49:21 +00:00
http_metrics Support IPv6 in BN and VC HTTP APIs (#3104) 2022-03-24 00:04:49 +00:00
lighthouse_network Test the pruning of excess peers using randomly generated input (#3248) 2022-06-25 22:22:34 +00:00
network Deprecate step param in BlocksByRange RPC request (#3275) 2022-06-22 16:23:34 +00:00
operation_pool Optimise per_epoch_processing low-hanging-fruit (#3254) 2022-06-10 04:29:28 +00:00
src Unify execution layer endpoints (#3214) 2022-06-29 09:07:09 +00:00
store Separate execution payloads in the DB (#3157) 2022-05-12 00:42:17 +00:00
tests Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
timer Fix per-slot timer in presence of clock changes (#3243) 2022-06-06 23:52:32 +00:00
Cargo.toml v2.3.2-rc.0 (#3289) 2022-06-28 03:03:30 +00:00