Skip to content

Commit 59a369a

Browse files
authored
Engine API: make engine_getPayloadVN fork agnostic (#355)
* Engine API: make engine_getPayloadVN fork agnostic * Fix links
1 parent 5561353 commit 59a369a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/engine/experimental/blob-extension.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@ Refer to the response for `engine_newPayloadV2`.
9292
#### Response
9393

9494
* result: `object`
95-
- `executionPayload`: [`ExecutionPayloadV3`](#ExecutionPayloadV3)
95+
- `executionPayload`: [`ExecutionPayloadV1`](../paris.md#ExecutionPayloadV1) | [`ExecutionPayloadV2`](../shanghai.md#ExecutionPayloadV2) | [`ExecutionPayloadV3`](#ExecutionPayloadV3) where:
96+
- `ExecutionPayloadV1` **MUST** be returned if the payload `timestamp` is lower than the Shanghai timestamp
97+
- `ExecutionPayloadV2` **MUST** be returned if the payload `timestamp` is greater or equal to the Shanghai timestamp and lower than the EIP-4844 activation timestamp
98+
- `ExecutionPayloadV3` **MUST** be returned if the payload `timestamp` is greater or equal to the EIP-4844 activation timestamp
9699
- `blockValue` : `QUANTITY`, 256 Bits - The expected value to be received by the `feeRecipient` in wei
97100
* error: code and message set in case an exception happens while getting the payload.
98101

src/engine/shanghai.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ This method follows the same specification as [`engine_forkchoiceUpdatedV1`](./p
135135
#### Response
136136

137137
* result: `object`
138-
- `executionPayload`: [`ExecutionPayloadV2`](#ExecutionPayloadV2)
138+
- `executionPayload`: [`ExecutionPayloadV1`](./paris.md#ExecutionPayloadV1) | [`ExecutionPayloadV2`](#ExecutionPayloadV2) where:
139+
- `ExecutionPayloadV1` **MUST** be returned if the payload `timestamp` is lower than the Shanghai timestamp
140+
- `ExecutionPayloadV2` **MUST** be returned if the payload `timestamp` is greater or equal to the Shanghai timestamp
139141
- `blockValue` : `QUANTITY`, 256 Bits - The expected value to be received by the `feeRecipient` in wei
140142
* error: code and message set in case an exception happens while getting the payload.
141143

0 commit comments

Comments
 (0)