Skip to content

Commit

Permalink
Address my own comment :)
Browse files Browse the repository at this point in the history
  • Loading branch information
ensi321 committed May 7, 2024
1 parent 6408326 commit ea89168
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export class AggregatedAttestationPool {
fork: ForkName,
forkChoice: IForkChoice,
state: CachedBeaconStateAllForks
): allForks.Attestation[] {
): phase0.Attestation[] {
const stateSlot = state.slot;
const stateEpoch = state.epochCtx.epoch;
const statePrevEpoch = stateEpoch - 1;
Expand Down Expand Up @@ -291,7 +291,7 @@ export class AggregatedAttestationPool {
fork: ForkName,
forkChoice: IForkChoice,
state: CachedBeaconStateAllForks
): allForks.Attestation[] {
): electra.Attestation[] {
const stateSlot = state.slot;
const stateEpoch = state.epochCtx.epoch;
const statePrevEpoch = stateEpoch - 1;
Expand Down Expand Up @@ -358,7 +358,6 @@ export class AggregatedAttestationPool {
// These properties should not change after being validate in gossip
// IF they have to be validated, do it only with one attestation per group since same data
// The committeeCountPerSlot can be precomputed once per slot
// for (const [i, {attestation, notSeenAttesterCount}] of attestationGroup
for (const [i, attestationNonParticipation] of attestationGroup
.getAttestationsForBlock(fork, notSeenAttestingIndices)
.entries()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,6 @@ describe("aggregateConsolidation", function () {
);
const aggAttestation = {
...attestationSeed,
// aggregationBits: BitArray.fromBoolArray(aggregationBitsArr[i]),
aggregationBits: new BitArray(new Uint8Array(aggregationBitsArr[i]), 3),
committeeBits: commiteeBits,
signature: sigArr[i].toBytes(),
Expand Down

0 comments on commit ea89168

Please sign in to comment.