-
Notifications
You must be signed in to change notification settings - Fork 291
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
add get aggregate attestation request #8483
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 pull request introduces the GetAggregateAttestationV2
API to handle Electra attestations, deprecating the old createAggregate
method.
ValidatorApiHandler.java
: AddedcreateAggregateV2
method; deprecatedcreateAggregate
.GetAggregateAttestation.java
: Updated to useGetAggregateAttestationV2
API; renamed response type.ValidatorApiChannel.java
: IntroducedcreateAggregateV2
method.MetricRecordingValidatorApiChannel.java
: AddedcreateAggregateV2
method; deprecatedcreateAggregate
.GetAggregateAttestationRequestTest.java
: Added integration tests forGetAggregateAttestationRequest
.getAggregateAttestationELECTRA.json
: Added sample JSON response for Electra version.getAggregateAttestationPHASE0.json
: Added sample JSON response for phase0 version.FailoverValidatorApiHandler.java
: AddedcreateAggregateV2
method; deprecatedcreateAggregate
.RemoteValidatorApiHandler.java
: AddedcreateAggregateV2
method; deprecatedcreateAggregate
.ValidatorApiMethod.java
: AddedGET_AGGREGATE_V2
endpoint.SentryValidatorApiChannel.java
: AddedcreateAggregateV2
method; deprecatedcreateAggregate
.OkHttpValidatorTypeDefClient.java
: AddedcreateAggregate
method usingGetAggregateAttestationRequest
.GetAggregateAttestationRequest.java
: Added new class to handleGetAggregateAttestationV2
API.
13 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
validator/api/src/main/java/tech/pegasys/teku/validator/api/ValidatorApiChannel.java
Outdated
Show resolved
Hide resolved
398f6b4
to
b86dcaf
Compare
...java/tech/pegasys/teku/validator/remote/typedef/handlers/GetAggregateAttestationRequest.java
Outdated
Show resolved
Hide resolved
.../resources/responses/get_aggregate_attestation_responses/getAggregateAttestationELECTRA.json
Outdated
Show resolved
Hide resolved
b5a758b
to
26af271
Compare
b8ec4ff
to
e0ae844
Compare
e0ae844
to
74c5afb
Compare
74c5afb
to
184eae7
Compare
...a/tech/pegasys/teku/validator/remote/typedef/handlers/CreateAggregateAttestationRequest.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
PR Description
Add the
GetAggregateAttestation
Request to use the newGetAggregateAttestationV2
APIFixed Issue(s)
#8420
Documentation
doc-change-required
label to this PR if updates are required.Changelog