-
Notifications
You must be signed in to change notification settings - Fork 224
Add register_validator endpoint
#209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mpetrunic
merged 8 commits into
ethereum:master
from
lightclient:new-validator-registration-method
May 10, 2022
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
fec7216
add new register_validator endpoint
lightclient 1832664
fix relative dir issue
lightclient e5e9e71
fix typo
lightclient af04e6c
s/indices/pubkeys
lightclient 61701dd
minor cleanup
lightclient 349df82
fix lint issue
lightclient 01e4009
update success response description
lightclient f91bcc2
update wording to be less explicit
lightclient File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| post: | ||
| operationId: "registerValidator" | ||
| summary: Provide beacon node with registrations for the given validators to the external builder network. | ||
| description: | | ||
| Prepares the beacon node for engaging with external builders. The | ||
| information will be sent by the beacon node to the builder network. It is | ||
| expected that the validator client will send this information periodically | ||
| to ensure the beacon node has correct and timely registration information | ||
| to provide to builders. The validator client should not sign blinded beacon | ||
| blocks that do not adhere to their latest fee recipient and gas limit | ||
| preferences. | ||
|
|
||
| Note that requests containing currently inactive or unknown validator | ||
| pubkeys will be accepted, as they may become active at a later epoch. | ||
| tags: | ||
| - Validator | ||
| requestBody: | ||
| content: | ||
| application/json: | ||
| schema: | ||
| type: array | ||
| items: | ||
| $ref: '../../beacon-node-oapi.yaml#/components/schemas/SignedValidatorRegistration' | ||
| responses: | ||
| "200": | ||
| description: Registration information has been received. | ||
| "400": | ||
| $ref: '../../beacon-node-oapi.yaml#/components/responses/InvalidRequest' | ||
| "500": | ||
| $ref: '../../beacon-node-oapi.yaml#/components/responses/InternalError' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| ValidatorRegistration: | ||
| type: object | ||
| description: "The `ValidatorRegistration` object from the Builder API specification." | ||
| properties: | ||
| fee_recipient: | ||
| $ref: 'primitive.yaml#/ExecutionAddress' | ||
| description: "Address to receive fees from the block." | ||
| gas_limit: | ||
| $ref: "primitive.yaml#/Uint64" | ||
| description: "Preferred gas limit of validator." | ||
| timestamp: | ||
| $ref: 'primitive.yaml#/Uint64' | ||
| description: "Unix timestamp of registration." | ||
| pubkey: | ||
| $ref: 'primitive.yaml#/Pubkey' | ||
| description: "BLS public key of validator." | ||
|
|
||
| SignedValidatorRegistration: | ||
| type: object | ||
| description: "The `SignedValidatorRegistration` object from the Builder API specification." | ||
| properties: | ||
| message: | ||
| $ref: "#/ValidatorRegistration" | ||
| signature: | ||
| $ref: "primitive.yaml#/Signature" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.