From 77bd6ed536b360b977e81afc3347b3e9e521eb59 Mon Sep 17 00:00:00 2001 From: Chen Kai <281165273grape@gmail.com> Date: Wed, 29 Nov 2023 10:00:31 +0800 Subject: [PATCH] fix:fix payloadattributes for forkchoiceV1 Signed-off-by: Chen Kai <281165273grape@gmail.com> --- .../io/optimism/engine/ExecutionPayload.java | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/hildr-node/src/main/java/io/optimism/engine/ExecutionPayload.java b/hildr-node/src/main/java/io/optimism/engine/ExecutionPayload.java index 89262afb..3f99348e 100644 --- a/hildr-node/src/main/java/io/optimism/engine/ExecutionPayload.java +++ b/hildr-node/src/main/java/io/optimism/engine/ExecutionPayload.java @@ -285,9 +285,6 @@ public record EpochReq(String number, String hash, String timestamp) {} * @param transactions the transactions * @param noTxPool the no tx pool * @param gasLimit the gas limit - * @param epoch the epoch - * @param l1InclusionBlock the l 1 inclusion block - * @param seqNumber the seq number */ public record PayloadAttributesReq( String timestamp, @@ -295,10 +292,7 @@ public record PayloadAttributesReq( String suggestedFeeRecipient, List transactions, boolean noTxPool, - String gasLimit, - EpochReq epoch, - String l1InclusionBlock, - String seqNumber) {} + String gasLimit) {} /** * To req payload attributes req. @@ -312,13 +306,7 @@ public PayloadAttributesReq toReq() { suggestedFeeRecipient, transactions, noTxPool, - Numeric.encodeQuantity(gasLimit), - new EpochReq( - Numeric.encodeQuantity(epoch.number()), - epoch.hash(), - Numeric.encodeQuantity(epoch.timestamp())), - Numeric.encodeQuantity(l1InclusionBlock), - Numeric.encodeQuantity(seqNumber)); + Numeric.encodeQuantity(gasLimit)); } }