Skip to content

Commit

Permalink
Merge pull request #105 from mkalinin/execute-payload-message
Browse files Browse the repository at this point in the history
Engine API: add message field to executePayload
  • Loading branch information
djrtwo committed Nov 2, 2021
2 parents 78d5194 + fb72a30 commit 845f9f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/engine/specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ This structure contains the attributes required to initiate a payload build proc
* result: `object`
- `status`: `enum` - `"VALID" | "INVALID" | "SYNCING"`
- `latestValidHash`: `DATA|null`, 32 bytes - the hash of the most recent *valid* block in the branch defined by payload and its ancestors
- `message`: `STRING|null` - the message providing additional details on the response to the method call if needed
* error: code and message set in case an exception happens during showing a message.

#### Specification
Expand All @@ -169,6 +170,8 @@ This structure contains the attributes required to initiate a payload build proc

3. Client software **MUST** return `{status: SYNCING, lastestValidHash: 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.

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.

### engine_forkchoiceUpdatedV1

#### Request
Expand Down

0 comments on commit 845f9f1

Please sign in to comment.