Skip to content

Commit

Permalink
deleted too much
Browse files Browse the repository at this point in the history
  • Loading branch information
tbenr committed Nov 21, 2024
1 parent 8842f26 commit 4a6cdd5
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@
import static tech.pegasys.teku.spec.schemas.registry.SchemaTypes.BLOB_SCHEMA;
import static tech.pegasys.teku.spec.schemas.registry.SchemaTypes.SIGNED_BEACON_BLOCK_SCHEMA;

import java.util.List;
import tech.pegasys.teku.infrastructure.ssz.SszList;
import tech.pegasys.teku.infrastructure.ssz.containers.ContainerSchema3;
import tech.pegasys.teku.infrastructure.ssz.schema.SszFieldName;
import tech.pegasys.teku.infrastructure.ssz.schema.SszListSchema;
import tech.pegasys.teku.infrastructure.ssz.tree.TreeNode;
import tech.pegasys.teku.kzg.KZGProof;
import tech.pegasys.teku.spec.config.SpecConfigDeneb;
import tech.pegasys.teku.spec.datastructures.blobs.versions.deneb.Blob;
import tech.pegasys.teku.spec.datastructures.blocks.SignedBeaconBlock;
Expand Down Expand Up @@ -54,6 +56,13 @@ public SignedBlockContentsSchema(
schemaRegistry.get(BLOB_SCHEMA), specConfig.getMaxBlobsPerBlock())));
}

public SignedBlockContents create(
final SignedBeaconBlock signedBeaconBlock,
final List<KZGProof> kzgProofs,
final List<Blob> blobs) {
return new SignedBlockContents(this, signedBeaconBlock, kzgProofs, blobs);
}

public SignedBlockContents create(
final SignedBeaconBlock signedBeaconBlock,
final SszList<SszKZGProof> kzgProofs,
Expand Down

0 comments on commit 4a6cdd5

Please sign in to comment.