Skip to content

Commit cb8773f

Browse files
authored
Merge pull request #135 from mkalinin/engine-api-validation-error
Engine API: inform CL with details on validation error
2 parents d7398c9 + 9121a9a commit cb8773f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/engine/specification.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ This structure contains the attributes required to initiate a payload build proc
180180
* result: `object`
181181
- `status`: `enum` - `"VALID" | "INVALID" | "SYNCING"`
182182
- `latestValidHash`: `DATA|null`, 32 Bytes - the hash of the most recent *valid* block in the branch defined by payload and its ancestors
183-
- `message`: `STRING|null` - the message providing additional details on the response to the method call if needed
183+
- `validationError`: `String|null` - a message providing additional details on the validation error if the payload is deemed `INVALID`
184184
* error: code and message set in case an exception happens while executing the payload.
185185

186186
#### Specification
@@ -193,7 +193,7 @@ This structure contains the attributes required to initiate a payload build proc
193193

194194
3. Client software **MUST** return `{status: SYNCING, latestValidHash: null}` if the sync process is already in progress or if requisite data for payload validation is missing. In the event that requisite data to validate the payload is missing (e.g. does not have payload identified by `parentHash`), the client software **SHOULD** initiate the sync process.
195195

196-
4. Client software **MAY** provide additional details on the payload validation by utilizing `message` field in the response object. For example, particular error message occurred during the payload execution may accompany a response with `INVALID` status.
196+
4. Client software **MAY** provide additional details on the validation error if the payload is deemed `INVALID` by assigning the corresponding message to the `validationError` field.
197197

198198
5. Client software **MUST** return `-32002: Invalid terminal block` error if the parent block is a PoW block that doesn't satisfy terminal block conditions according to [EIP-3675](https://eips.ethereum.org/EIPS/eip-3675#definitions). This check maps on the Transition block validity section of [EIP-3675](https://eips.ethereum.org/EIPS/eip-3675#transition-block-validity).
199199

0 commit comments

Comments
 (0)