-
Notifications
You must be signed in to change notification settings - Fork 204
Add proposer duties v2 endpoint #563
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
Open
nflaig
wants to merge
6
commits into
master
Choose a base branch
from
nflaig/proposer-duties-v2
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+78
−0
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
c39ee0b
Add proposer duties v2 endpoint
nflaig 5db4fde
Update changelog
nflaig 5c37434
Not required until gloas
nflaig b55643b
Add gloas to word list
nflaig 6c0cee2
Merge branch 'master' into nflaig/proposer-duties-v2
nflaig 31ad8d6
Merge branch 'master' into nflaig/proposer-duties-v2
nflaig 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
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,72 @@ | ||
| get: | ||
| tags: | ||
| - ValidatorRequiredApi | ||
| - Validator | ||
| summary: "Get block proposers duties" | ||
| operationId: "getProposerDutiesV2" | ||
| description: "Request beacon node to provide all validators that are scheduled to propose a block in the given epoch. | ||
|
|
||
| Duties should only need to be checked once per epoch, | ||
| however a chain reorganization could occur that results in a change of duties. For full safety, | ||
| you should monitor head events and confirm the dependent root in this response matches. After Fulu, | ||
| different checks need to be performed as the dependent root changes due to deterministic proposer lookahead. | ||
|
|
||
|
|
||
| Before Fulu: | ||
|
|
||
| - event.current_duty_dependent_root when `compute_epoch_at_slot(event.slot) == epoch` | ||
|
|
||
| - event.block otherwise | ||
|
|
||
| - dependent_root value is `get_block_root_at_slot(state, compute_start_slot_at_epoch(epoch) - 1)` | ||
|
|
||
|
|
||
| After Fulu: | ||
|
|
||
| - event.previous_duty_dependent_root when `compute_epoch_at_slot(event.slot) == epoch` | ||
|
|
||
| - event.block otherwise | ||
|
|
||
| - dependent_root value is `get_block_root_at_slot(state, compute_start_slot_at_epoch(epoch - 1) - 1)` | ||
|
|
||
|
|
||
| The dependent_root value is the genesis block root in the case of underflow. | ||
|
|
||
| Note: not required until Gloas" | ||
| parameters: | ||
| - name: epoch | ||
| in: path | ||
| required: true | ||
| schema: | ||
| $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Uint64' | ||
| responses: | ||
| "200": | ||
| description: Success response | ||
| content: | ||
| application/json: | ||
| schema: | ||
| title: GetProposerDutiesResponse | ||
| type: object | ||
| required: [dependent_root, execution_optimistic, data] | ||
| properties: | ||
| dependent_root: | ||
| $ref: "../../../beacon-node-oapi.yaml#/components/schemas/DependentRoot" | ||
| execution_optimistic: | ||
| $ref: "../../../beacon-node-oapi.yaml#/components/schemas/ExecutionOptimistic" | ||
| data: | ||
| type: array | ||
| items: | ||
| $ref: "../../../beacon-node-oapi.yaml#/components/schemas/ProposerDuty" | ||
| "400": | ||
| description: "Invalid epoch" | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: "../../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage" | ||
| example: | ||
| code: 400 | ||
| message: "Invalid epoch: -2" | ||
| "500": | ||
| $ref: '../../../beacon-node-oapi.yaml#/components/responses/InternalError' | ||
| "503": | ||
| $ref: '../../../beacon-node-oapi.yaml#/components/responses/CurrentlySyncing' | ||
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
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 |
|---|---|---|
|
|
@@ -37,3 +37,4 @@ KZGProofs | |
| KZGCommitmentInclusionProof | ||
| LMD | ||
| fulu | ||
| gloas | ||
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.