-
-
Notifications
You must be signed in to change notification settings - Fork 457
feat: ignore index-1 attestation when payload is missing #9213
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
Changes from all commits
408b7b0
4652529
5d50ac5
56bc75a
da26e34
25b65a8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -315,6 +315,19 @@ async function validateAttestationNoSignatureCheck( | |
| code: AttestationErrorCode.PREMATURELY_INDICATED_PAYLOAD_PRESENT, | ||
| }); | ||
| } | ||
|
|
||
| // [REJECT] If `attestation.data.index == 1` (payload present for a past | ||
| // block), the execution payload for `block` passes validation. | ||
| // [IGNORE] When `attestation.data.index == 1` (payload present for a past block), | ||
| // the corresponding execution payload for `block` has been seen (a client MAY queue | ||
| // attestations for processing once the payload is retrieved and SHOULD request the | ||
| // payload envelope via `ExecutionPayloadEnvelopesByRoot`). | ||
| if (block !== null && attData.index === 1 && !chain.seenPayloadEnvelope(toRootHex(attData.beaconBlockRoot))) { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Throwing Useful? React with 👍 / 👎. |
||
| throw new AttestationError(GossipAction.IGNORE, { | ||
| code: AttestationErrorCode.EXECUTION_PAYLOAD_NOT_SEEN, | ||
| beaconBlockRoot: toRootHex(attData.beaconBlockRoot), | ||
| }); | ||
| } | ||
| } else { | ||
| // [REJECT] attestation.data.index == 0 | ||
| if (attData.index !== 0) { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This new IGNORE branch introduces the same failure mode for
publishAggregateAndProofsV2: index-1 aggregates now error out when the block is present but payload envelope import has not completed, yet the API retry path only handles unknown block roots and does not retry onEXECUTION_PAYLOAD_NOT_SEEN. As a result, valid aggregates from external/fallback beacon nodes can be rejected instead of being processed after envelope retrieval.Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds like both of these codex messages are saying that our queuing needs to handle these failed attestations / aggregates
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is out of the scope of this PR. Tracking this issue at #9224