Skip to content

Commit 6c1b32c

Browse files
thinkAfCodGrapeBaBa
authored andcommitted
fix: comments
1 parent 0d2eec1 commit 6c1b32c

File tree

3 files changed

+24
-3
lines changed

3 files changed

+24
-3
lines changed

hildr-node/src/main/java/io/optimism/engine/Engine.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,13 @@ OpEthForkChoiceUpdate forkchoiceUpdated(ForkchoiceState forkchoiceState, Payload
8080
* <p>Specification method: engine_getPayloadV2 params: - [PayloadId]: DATA, 8 Bytes - Identifier
8181
* of the payload build process timeout: 1s returns: - [ExecutionPayload] potential errors: - code
8282
* and message set in case an exception happens while getting the payload. Refer to <a
83-
* href="https://github.com/ethereum-optimism/optimism/blob/develop/specs/exec-engine.md#engine_getpayloadv2">Optimism
84-
* Specs</a>
83+
* href="https://github.com/ethereum-optimism/optimism/blob/develop/specs/exec-engine.md#engine_getpayloadv2">Optimism Specs</a>
8584
*
8685
* @param payloadId the payload id
8786
* @return the payload v2
8887
* @throws IOException the io exception
8988
* @see <a
90-
* href="https://github.com/ethereum/execution-apis/blob/main/src/engine/shanghai.md#engine_getpayloadv2</a>
89+
* href="https://github.com/ethereum/execution-apis/blob/main/src/engine/shanghai.md#engine_getpayloadv2"></a>
9190
*/
9291
OpEthExecutionPayload getPayloadV2(BigInteger payloadId) throws IOException;
9392
}

hildr-node/src/main/java/io/optimism/engine/ExecutionPayload.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ public static ExecutionPayload from(ExecutionPayloadSSZ payload) {
197197
* @param extraData 0 to 32 byte value for extra data.
198198
* @param baseFeePerGas 256 bits for the base fee per gas.
199199
* @param blockHash The 32 byte block hash.
200+
* @param withdrawals The withdrawals list.
200201
* @param transactions An array of transaction objects where each object is a byte list.
201202
*/
202203
public record ExecutionPayloadReq(

hildr-node/src/main/java/io/optimism/engine/OpEthExecutionPayload.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,41 @@ public void setResult(ExecutionPayloadObj result) {
5353
super.setResult(result);
5454
}
5555

56+
/**
57+
* The type Execution payload obj.
58+
* @since 0.2.6
59+
*/
5660
public static class ExecutionPayloadObj {
5761

62+
/** The Execution payload result. */
5863
private ExecutionPayload.ExecutionPayloadRes executionPayload;
5964

65+
/** Instantiates a new Execution payload obj. */
6066
public ExecutionPayloadObj() {}
6167

68+
/**
69+
* Instantiates a new Execution payload obj.
70+
*
71+
* @param executionPayload the execution payload result
72+
*/
6273
public ExecutionPayloadObj(ExecutionPayload.ExecutionPayloadRes executionPayload) {
6374
this.executionPayload = executionPayload;
6475
}
6576

77+
/**
78+
* Gets execution payload result.
79+
*
80+
* @return the execution payload result
81+
*/
6682
public ExecutionPayload.ExecutionPayloadRes getExecutionPayload() {
6783
return executionPayload;
6884
}
6985

86+
/**
87+
* Sets execution payload.
88+
*
89+
* @param executionPayload the execution payload result
90+
*/
7091
public void setExecutionPayload(ExecutionPayload.ExecutionPayloadRes executionPayload) {
7192
this.executionPayload = executionPayload;
7293
}

0 commit comments

Comments
 (0)