Skip to content

Commit 9607e8b

Browse files
committed
Remove unnecessary logic
1 parent 0af1e24 commit 9607e8b

File tree

4 files changed

+0
-218
lines changed

4 files changed

+0
-218
lines changed

data/serializer/src/main/java/tech/pegasys/teku/api/response/v1/validator/AttesterDuty.java

-124
This file was deleted.

data/serializer/src/main/java/tech/pegasys/teku/api/response/v1/validator/PostAttesterDutiesResponse.java

-78
This file was deleted.

validator/remote/src/main/java/tech/pegasys/teku/validator/remote/apiclient/OkHttpValidatorRestApiClient.java

-12
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import static tech.pegasys.teku.infrastructure.http.HttpStatusCodes.SC_METHOD_NOT_ALLOWED;
1919
import static tech.pegasys.teku.infrastructure.http.HttpStatusCodes.SC_NOT_FOUND;
2020
import static tech.pegasys.teku.validator.remote.apiclient.ValidatorApiMethod.GET_AGGREGATE;
21-
import static tech.pegasys.teku.validator.remote.apiclient.ValidatorApiMethod.GET_ATTESTATION_DUTIES;
2221
import static tech.pegasys.teku.validator.remote.apiclient.ValidatorApiMethod.GET_BLOCK_HEADER;
2322
import static tech.pegasys.teku.validator.remote.apiclient.ValidatorApiMethod.GET_GENESIS;
2423
import static tech.pegasys.teku.validator.remote.apiclient.ValidatorApiMethod.GET_PROPOSER_DUTIES;
@@ -66,7 +65,6 @@
6665
import tech.pegasys.teku.api.response.v1.validator.GetAggregatedAttestationResponse;
6766
import tech.pegasys.teku.api.response.v1.validator.GetProposerDutiesResponse;
6867
import tech.pegasys.teku.api.response.v1.validator.GetSyncCommitteeContributionResponse;
69-
import tech.pegasys.teku.api.response.v1.validator.PostAttesterDutiesResponse;
7068
import tech.pegasys.teku.api.response.v1.validator.PostSyncDutiesResponse;
7169
import tech.pegasys.teku.api.response.v1.validator.PostValidatorLivenessResponse;
7270
import tech.pegasys.teku.api.schema.Attestation;
@@ -154,16 +152,6 @@ public Optional<List<ValidatorResponse>> postValidators(final List<String> valid
154152
.map(response -> response.data);
155153
}
156154

157-
@Override
158-
public Optional<PostAttesterDutiesResponse> getAttestationDuties( // todo delete
159-
final UInt64 epoch, final Collection<Integer> validatorIndices) {
160-
return post(
161-
GET_ATTESTATION_DUTIES,
162-
Map.of("epoch", epoch.toString()),
163-
validatorIndices.stream().map(UInt64::valueOf).toList(),
164-
createHandler(PostAttesterDutiesResponse.class));
165-
}
166-
167155
@Override
168156
public Optional<GetProposerDutiesResponse> getProposerDuties(final UInt64 epoch) {
169157
return get(

validator/remote/src/main/java/tech/pegasys/teku/validator/remote/apiclient/ValidatorRestApiClient.java

-4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import tech.pegasys.teku.api.response.v1.beacon.PostDataFailureResponse;
2323
import tech.pegasys.teku.api.response.v1.beacon.ValidatorResponse;
2424
import tech.pegasys.teku.api.response.v1.validator.GetProposerDutiesResponse;
25-
import tech.pegasys.teku.api.response.v1.validator.PostAttesterDutiesResponse;
2625
import tech.pegasys.teku.api.response.v1.validator.PostSyncDutiesResponse;
2726
import tech.pegasys.teku.api.response.v1.validator.PostValidatorLivenessResponse;
2827
import tech.pegasys.teku.api.schema.Attestation;
@@ -45,9 +44,6 @@ public interface ValidatorRestApiClient {
4544

4645
Optional<List<ValidatorResponse>> postValidators(List<String> validatorIds);
4746

48-
Optional<PostAttesterDutiesResponse> getAttestationDuties(
49-
final UInt64 epoch, final Collection<Integer> validatorIndices);
50-
5147
Optional<GetProposerDutiesResponse> getProposerDuties(final UInt64 epoch);
5248

5349
Optional<PostDataFailureResponse> sendSignedAttestations(List<Attestation> attestation);

0 commit comments

Comments
 (0)