Skip to content

Commit

Permalink
fix few tests again
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov committed Sep 10, 2024
1 parent 8bf741d commit 1afa6e1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,7 @@ private SafeFuture<Optional<List<BlobSidecar>>> getBlobSidecarsForBlock(
if (maybeDenebBlock.isEmpty()) {
return SafeFuture.completedFuture(Optional.empty());
}
// no blob kzg commitments in EIP-7732 blocks
if (maybeDenebBlock.get().getOptionalBlobKzgCommitments().map(SszList::isEmpty).orElse(true)) {
if (maybeDenebBlock.get().getOptionalBlobKzgCommitments().map(SszList::isEmpty).orElse(false)) {
return SafeFuture.completedFuture(Optional.of(Collections.emptyList()));
}
final SignedBeaconBlock block = maybeBlock.get();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1523,6 +1523,16 @@ public BeaconBlockBody randomFullBeaconBlockBody(
BeaconBlockBodySchemaDeneb.required(schema).getBlobKzgCommitmentsSchema(),
this::randomSszKZGCommitment));
}
if (builder.supportsSignedExecutionPayloadHeader()) {
builder.signedExecutionPayloadHeader(randomSignedExecutionPayloadHeader());
}
if (builder.supportsPayloadAttestations()) {
builder.payloadAttestations(
randomFullSszList(
BeaconBlockBodySchemaEip7732.required(schema)
.getPayloadAttestationsSchema(),
this::randomPayloadAttestation));
}
builderModifier.accept(builder);
return SafeFuture.COMPLETE;
})
Expand Down

0 comments on commit 1afa6e1

Please sign in to comment.