Skip to content

Commit

Permalink
Add todos
Browse files Browse the repository at this point in the history
  • Loading branch information
ensi321 committed Aug 5, 2024
1 parent e4f52b4 commit 9b9836e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/api/src/beacon/routes/beacon/pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ const SignedVoluntaryExitListType = ArrayOf(ssz.phase0.SignedVoluntaryExit);
const SignedBLSToExecutionChangeListType = ArrayOf(ssz.capella.SignedBLSToExecutionChange);
const SyncCommitteeMessageListType = ArrayOf(ssz.altair.SyncCommitteeMessage);

export type AttestationListPhase0 = ValueOf<typeof AttestationListTypePhase0>;
type AttestationListPhase0 = ValueOf<typeof AttestationListTypePhase0>;
type AttestationListElectra = ValueOf<typeof AttestationListTypeElectra>;
export type AttestationList = AttestationListPhase0 | AttestationListElectra;
type AttestationList = AttestationListPhase0 | AttestationListElectra;

type AttesterSlashingListPhase0 = ValueOf<typeof AttesterSlashingListTypePhase0>;
type AttesterSlashingListElectra = ValueOf<typeof AttesterSlashingListTypeElectra>;
Expand Down
1 change: 1 addition & 0 deletions packages/beacon-node/src/api/impl/validator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1067,6 +1067,7 @@ export function getValidatorApi(
};
},

// TODO Electra: Implement getAggregatedAttestation to properly handle pre-electra
async getAggregatedAttestation() {
throw new Error("Not implemented. Use getAggregatedAttestationV2 for now.");
},
Expand Down
1 change: 1 addition & 0 deletions packages/validator/src/services/attestation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ export class AttestationService {
...(this.opts?.disableAttestationGrouping && {index: attestationNoCommittee.index}),
};
try {
// TODO Electra: Ensure calling V2 works in pre-electra
(await this.api.beacon.submitPoolAttestationsV2({signedAttestations})).assertOk();
this.logger.info("Published attestations", {...logCtx, count: signedAttestations.length});
this.metrics?.publishedAttestations.inc(signedAttestations.length);
Expand Down

0 comments on commit 9b9836e

Please sign in to comment.