Skip to content

Commit

Permalink
big fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tbenr committed Oct 8, 2024
1 parent 5b3da81 commit 6c3c34e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public void convertFromSingleAttestation(final SszBitlist singleAttestationAggre
}

public void createSingleAttestation(final UInt64 validatorIndex) {
if(attestation.getCommitteeBits().isEmpty() || singleAttestation.isPresent()) {
if (attestation.getCommitteeBits().isEmpty() || singleAttestation.isPresent()) {
return;
}
spec.atSlot(attestation.getData().getSlot())
Expand Down Expand Up @@ -329,7 +329,7 @@ public String toString() {
.add("committeeShufflingSeed", committeeShufflingSeed)
.add("committeesSize", committeesSize)
.add("receivedSubnetId", receivedSubnetId)
.add("singleAttestation", singleAttestation)
.add("singleAttestation", singleAttestation)
.toString();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,11 @@ private SszBitlist getSingleAttestationAggregationBits(
validatorIndex,
attestation.getFirstCommitteeIndex());

return schemaDefinitions.toVersionElectra().orElseThrow().getAttestationSchema().createAggregationBitsOf(validatorCommitteeBit);
return schemaDefinitions
.toVersionElectra()
.orElseThrow()
.getAttestationSchema()
.createAggregationBitsOf(validatorCommitteeBit);
}

private UInt64 getValidatorIndexFromAttestation(
Expand Down

0 comments on commit 6c3c34e

Please sign in to comment.