Skip to content

Commit 3d695a3

Browse files
committed
Change definition order
1 parent f9bb55b commit 3d695a3

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

src/engine/prague.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ This specification is based on and extends [Engine API - Cancun](./cancun.md) sp
1616
- [Request](#request)
1717
- [Response](#response)
1818
- [Specification](#specification)
19-
- [engine_getPayloadV4](#engine_getpayloadv4)
19+
- [engine_forkchoiceUpdatedV4](#engine_forkchoiceupdatedv4)
2020
- [Request](#request-1)
2121
- [Response](#response-1)
2222
- [Specification](#specification-1)
23-
- [engine_forkchoiceUpdatedV4](#engine_forkchoiceupdatedv4)
23+
- [engine_getPayloadV4](#engine_getpayloadv4)
2424
- [Request](#request-2)
2525
- [Response](#response-2)
2626
- [Specification](#specification-2)
@@ -73,6 +73,26 @@ and incorporate it into the `blockHash` validation process.
7373
That is, if the computed commitment does not match the corresponding commitment in the execution layer block header,
7474
the call **MUST** return `{status: INVALID, latestValidHash: null, validationError: errorMessage | null}`.
7575

76+
### engine_forkchoiceUpdatedV4
77+
78+
#### Request
79+
80+
* method: `engine_forkchoiceUpdatedV4`
81+
* params:
82+
1. `forkchoiceState`: [`ForkchoiceStateV1`](./paris.md#ForkchoiceStateV1).
83+
2. `payloadAttributes`: `Object|null` - Instance of [`PayloadAttributesV4`](#payloadattributesv4) or `null`.
84+
* timeout: 8s
85+
86+
#### Response
87+
88+
Refer to the response for [`engine_forkchoiceUpdatedV3`](./cancun.md#engine_forkchoiceupdatedv3).
89+
90+
#### Specification
91+
92+
This method follows the same specification as [`engine_forkchoiceUpdatedV3`](./cancun.md#engine_forkchoiceupdatedv3) with the following modifications:
93+
1. `payloadAttributes` **MUST** match the [`PayloadAttributesV4`](#payloadattributesv4) structure.
94+
2. `payloadAttributes.timestamp` **MUST** fall within the time frame of the Prague fork.
95+
7696
### engine_getPayloadV4
7797

7898
The response of this method is extended with the `executionRequests` field.
@@ -102,26 +122,6 @@ This method follows the same specification as [`engine_getPayloadV3`](./cancun.m
102122

103123
2. The call **MUST** return `executionRequests` list representing execution layer triggered requests. Each list element is a `requests` byte array as defined by [EIP-7685](https://eips.ethereum.org/EIPS/eip-7685). The first byte of each element is the `request_type` and the remaining bytes are the `request_data`. Elements of the list **MUST** be ordered by `request_type` in ascending order. Elements with empty `request_data` **MUST** be excluded from the list.
104124

105-
### engine_forkchoiceUpdatedV4
106-
107-
#### Request
108-
109-
* method: `engine_forkchoiceUpdatedV4`
110-
* params:
111-
1. `forkchoiceState`: [`ForkchoiceStateV1`](./paris.md#ForkchoiceStateV1).
112-
2. `payloadAttributes`: `Object|null` - Instance of [`PayloadAttributesV4`](#payloadattributesv4) or `null`.
113-
* timeout: 8s
114-
115-
#### Response
116-
117-
Refer to the response for [`engine_forkchoiceUpdatedV3`](./cancun.md#engine_forkchoiceupdatedv3).
118-
119-
#### Specification
120-
121-
This method follows the same specification as [`engine_forkchoiceUpdatedV3`](./cancun.md#engine_forkchoiceupdatedv3) with the following modifications:
122-
1. `payloadAttributes` **MUST** match the [`PayloadAttributesV4`](#payloadattributesv4) structure.
123-
2. `payloadAttributes.timestamp` **MUST** fall within the time frame of the Prague fork.
124-
125125
### Update the methods of previous forks
126126

127127
This document defines how Prague payload should be handled by the [`Cancun API`](./cancun.md).

0 commit comments

Comments
 (0)