Skip to content

Commit

Permalink
Removing ExecutionPayloadV4 (#8667)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucassaldanha authored Oct 2, 2024
1 parent a929217 commit 4e8c17e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 94 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import tech.pegasys.teku.ethereum.executionclient.serialization.UInt256AsHexSerializer;

public class GetPayloadV4Response {
public final ExecutionPayloadV4 executionPayload;
public final ExecutionPayloadV3 executionPayload;

@JsonSerialize(using = UInt256AsHexSerializer.class)
@JsonDeserialize(using = UInt256AsHexDeserializer.class)
Expand All @@ -34,7 +34,7 @@ public class GetPayloadV4Response {
public final boolean shouldOverrideBuilder;

public GetPayloadV4Response(
final @JsonProperty("executionPayload") ExecutionPayloadV4 executionPayload,
final @JsonProperty("executionPayload") ExecutionPayloadV3 executionPayload,
final @JsonProperty("blockValue") UInt256 blockValue,
final @JsonProperty("blobsBundle") BlobsBundleV1 blobsBundle,
final @JsonProperty("shouldOverrideBuilder") boolean shouldOverrideBuilder) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import tech.pegasys.teku.ethereum.executionclient.ExecutionEngineClient;
import tech.pegasys.teku.ethereum.executionclient.response.InvalidRemoteResponseException;
import tech.pegasys.teku.ethereum.executionclient.schema.BlobsBundleV1;
import tech.pegasys.teku.ethereum.executionclient.schema.ExecutionPayloadV4;
import tech.pegasys.teku.ethereum.executionclient.schema.ExecutionPayloadV3;
import tech.pegasys.teku.ethereum.executionclient.schema.GetPayloadV4Response;
import tech.pegasys.teku.ethereum.executionclient.schema.Response;
import tech.pegasys.teku.infrastructure.async.SafeFuture;
Expand Down Expand Up @@ -142,7 +142,7 @@ private SafeFuture<Response<GetPayloadV4Response>> dummySuccessfulResponse(
return SafeFuture.completedFuture(
new Response<>(
new GetPayloadV4Response(
ExecutionPayloadV4.fromInternalExecutionPayload(executionPayload),
ExecutionPayloadV3.fromInternalExecutionPayload(executionPayload),
blockValue,
BlobsBundleV1.fromInternalBlobsBundle(blobsBundle),
false)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import org.junit.jupiter.api.Test;
import tech.pegasys.teku.ethereum.executionclient.schema.BlobsBundleV1;
import tech.pegasys.teku.ethereum.executionclient.schema.ExecutionPayloadV3;
import tech.pegasys.teku.ethereum.executionclient.schema.ExecutionPayloadV4;
import tech.pegasys.teku.ethereum.executionclient.schema.ForkChoiceStateV1;
import tech.pegasys.teku.ethereum.executionclient.schema.ForkChoiceUpdatedResult;
import tech.pegasys.teku.ethereum.executionclient.schema.GetPayloadV4Response;
Expand Down Expand Up @@ -65,7 +64,7 @@ void engineGetPayload_shouldCallGetPayloadV4() throws ExecutionException, Interr
SafeFuture.completedFuture(
new Response<>(
new GetPayloadV4Response(
ExecutionPayloadV4.fromInternalExecutionPayload(
ExecutionPayloadV3.fromInternalExecutionPayload(
dataStructureUtil.randomExecutionPayload()),
UInt256.MAX_VALUE,
BlobsBundleV1.fromInternalBlobsBundle(dataStructureUtil.randomBlobsBundle()),
Expand Down

0 comments on commit 4e8c17e

Please sign in to comment.