Skip to content

Commit

Permalink
Clarify matching statements
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalinin committed Dec 4, 2023
1 parent f72f1fa commit e474732
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/engine/cancun.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ Refer to the response for [`engine_forkchoiceUpdatedV2`](./shanghai.md#engine_fo

This method follows the same specification as [`engine_forkchoiceUpdatedV2`](./shanghai.md#engine_forkchoiceupdatedv2) with the following changes to the processing flow:

1. Client software **MUST** verify that `forkchoiceState` matches the expected fields and return `-32602: Invalid params` on failure.
1. Client software **MUST** verify that `forkchoiceState` matches the [`ForkchoiceStateV1`](./paris.md#ForkchoiceStateV1) structure and return `-32602: Invalid params` on failure.

2. Extend point (7) of the `engine_forkchoiceUpdatedV1` [specification](./paris.md#specification-1) by defining the following sequence of checks that **MUST** be run over `payloadAttributes`:

1. `payloadAttributes` matches the expected fields, return `-38003: Invalid payload attributes` on failure.
1. `payloadAttributes` matches the [`PayloadAttributesV3`](#payloadattributesv3) structure, return `-38003: Invalid payload attributes` on failure.

2. `payloadAttributes.timestamp` falls within the time frame of the Cancun fork, return `-38005: Unsupported fork` on failure.

Expand Down

0 comments on commit e474732

Please sign in to comment.