Skip to content

Commit

Permalink
Merge branch 'main' into EIP4788
Browse files Browse the repository at this point in the history
  • Loading branch information
macfarla authored Aug 22, 2023
2 parents 8c134c5 + c3c7205 commit 464afde
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import org.apache.tuweni.bytes.Bytes32;

@JsonPropertyOrder({"executionPayload", "blockValue", "blobsBundle"})
@JsonPropertyOrder({"executionPayload", "blockValue", "blobsBundle", "shouldOverrideBuilder"})
public class EngineGetPayloadResultV3 {
protected final PayloadResult executionPayload;
private final String blockValue;
private final BlobsBundleV1 blobsBundle;
private final boolean shouldOverrideBuilder;

public EngineGetPayloadResultV3(
final BlockHeader header,
Expand All @@ -42,6 +43,7 @@ public EngineGetPayloadResultV3(
this.executionPayload = new PayloadResult(header, transactions, withdrawals);
this.blockValue = blockValue;
this.blobsBundle = blobsBundle;
this.shouldOverrideBuilder = false;
}

@JsonGetter(value = "executionPayload")
Expand All @@ -59,6 +61,11 @@ public BlobsBundleV1 getBlobsBundle() {
return blobsBundle;
}

@JsonGetter(value = "shouldOverrideBuilder")
public boolean shouldOverrideBuilder() {
return shouldOverrideBuilder;
}

public static class PayloadResult {

protected final String blockHash;
Expand Down

0 comments on commit 464afde

Please sign in to comment.