Skip to content

Commit

Permalink
fix:fix payloadattributes for forkchoiceV1
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Kai <[email protected]>
  • Loading branch information
GrapeBaBa committed Nov 29, 2023
1 parent 8e254fc commit 77bd6ed
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions hildr-node/src/main/java/io/optimism/engine/ExecutionPayload.java
Original file line number Diff line number Diff line change
Expand Up @@ -285,20 +285,14 @@ 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,
String prevRandao,
String suggestedFeeRecipient,
List<String> transactions,
boolean noTxPool,
String gasLimit,
EpochReq epoch,
String l1InclusionBlock,
String seqNumber) {}
String gasLimit) {}

/**
* To req payload attributes req.
Expand All @@ -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));
}
}

Expand Down

0 comments on commit 77bd6ed

Please sign in to comment.