Skip to content

Commit

Permalink
Make engine_getBlobsV1 not fork specific
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov committed Dec 31, 2024
1 parent b4f7c2d commit 1ba5e52
Show file tree
Hide file tree
Showing 14 changed files with 33 additions and 563 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
public enum EngineApiMethod {
ENGINE_NEW_PAYLOAD("engine_newPayload"),
ENGINE_GET_PAYLOAD("engine_getPayload"),
ENGINE_FORK_CHOICE_UPDATED("engine_forkchoiceUpdated"),
ENGINE_GET_BLOBS("engine_getBlobs");
ENGINE_FORK_CHOICE_UPDATED("engine_forkchoiceUpdated");

private final String name;

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@ default boolean isDeprecated() {
return false;
}

// TODO should be remove once all ELs implement engine_getBlobsV1. It has been added only to
// better handle the use case when the method is missing in the EL side
default boolean isOptional() {
return false;
}

default String getVersionedName() {
return getVersion() == 0 ? getName() : getName() + "V" + getVersion();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ public BlobAndProof asInternalBlobsAndProofs(final BlobSchema blobSchema) {
return new BlobAndProof(new Blob(blobSchema, blob), new KZGProof(proof));
}

public static BlobAndProofV1 fromInternalBlobsBundle(final BlobAndProof blobAndProof) {
return new BlobAndProofV1(
blobAndProof.blob().getBytes(), blobAndProof.proof().getBytesCompressed());
}

@Override
public boolean equals(final Object o) {
if (this == o) {
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 1ba5e52

Please sign in to comment.