-
Notifications
You must be signed in to change notification settings - Fork 304
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
Post aggregate and proofs request #8523
Conversation
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.
PR Summary
This PR updates the SendAggregateAndProofsRequest to support the new PostAggregateAndProofsV2 API for the Electra milestone, implementing EIP-7549. Key changes include:
- Added support for different SpecMilestones in SendAggregateAndProofsRequest and SendSignedAttestationsRequest
- Introduced separate methods for pre-Electra and post-Electra submissions in both request handlers
- Added consensus version header for post-Electra requests
- Updated ValidatorApiMethod enum with new V2 endpoints for signed attestations and aggregate proofs
- Modified OkHttpValidatorTypeDefClient to include 'spec' parameter in relevant methods
- Updated AbstractTypeDefRequest to support additional headers in postJson method
- Added new integration tests for Electra milestone in SendSignedAttestationsRequestElectraTest
- Updated existing tests to accommodate new changes and improve specificity
These changes ensure compatibility with both pre-Electra and Electra milestones, aligning with EIP-7549 implementation requirements.
13 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings
@TestTemplate | ||
public void getAggregateAttestation_makesExpectedRequest() throws Exception { |
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.
logic: Method name doesn't match its functionality
29a772a
to
bf40b3d
Compare
bf40b3d
to
4571823
Compare
…estationsRequest class - removed an endpoint that had 1 usage in the AbstractTypeDefRequest class- if we're adding a parameter to a fn thats used in one place i'd prefer we dont make a new fn. - new test class for electra attestations (renamed the post test class) Signed-off-by: Paul Harris <[email protected]>
…estationsRequest class - removed an endpoint that had 1 usage in the AbstractTypeDefRequest class- if we're adding a parameter to a fn thats used in one place i'd prefer we dont make a new fn. - new test class for electra attestations (renamed the post test class) Signed-off-by: Paul Harris <[email protected]>
4571823
to
9e23c33
Compare
...or/remote/src/main/java/tech/pegasys/teku/validator/remote/apiclient/ValidatorApiMethod.java
Outdated
Show resolved
Hide resolved
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.
LGTM with one cleanup
PR Description
Update the
SendAggregateAndProofsRequest
to use the newPostAggregateAndProofsV2
API post ElectraFixed Issue(s)
#8439
Documentation
doc-change-required
label to this PR if updates are required.Changelog