-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #178 from mcdee/potential-proposers
Addition of prepare_beacon_proposer endpoint.
- Loading branch information
Showing
3 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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,42 @@ | ||
post: | ||
operationId: "prepareBeaconProposer" | ||
summary: Provide beacon node with proposals for the given validators. | ||
description: | | ||
Prepares the beacon node for potential proposers by supplying information | ||
required when proposing blocks for the given validators. The information | ||
supplied for each validator index will persist through the epoch in which | ||
the call is submitted and for a further two epochs after that, or until the | ||
beacon node restarts. It is expected that validator clients will send this | ||
information periodically, for example each epoch, to ensure beacon nodes have | ||
correct and timely fee recipient information. | ||
Note that there is no guarantee that the beacon node will use the supplied fee | ||
recipient when creating a block proposal, so on receipt of a proposed block the | ||
validator should confirm that it finds the fee recipient within the block | ||
acceptable before signing it. | ||
Also note that requests containing currently inactive or unknown validator | ||
indices will be accepted, as they may become active at a later epoch. | ||
tags: | ||
- ValidatorRequiredApi | ||
- Validator | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
type: array | ||
items: | ||
type: object | ||
properties: | ||
validator_index: | ||
$ref: '../../beacon-node-oapi.yaml#/components/schemas/Uint64' | ||
fee_recipient: | ||
$ref: '../../beacon-node-oapi.yaml#/components/schemas/ExecutionAddress' | ||
responses: | ||
"200": | ||
description: | | ||
Preparation 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 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 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