Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify Cancun payloads handling by earlier APIs; reorder checks #426

Merged
merged 7 commits into from
Aug 4, 2023

Conversation

flcl42
Copy link
Contributor

@flcl42 flcl42 commented Jun 29, 2023

  • Remove uncertainty in handling Cancun payload by previous forks' APIs
  • Remove redundant spec
  • Clarify the order of overlapping payload verification rules

@flcl42 flcl42 changed the title Clarify Cancun payloads handling by Shanghai APIs; reorder checks Clarify Cancun payloads handling by earlier APIs; reorder checks Jun 29, 2023
@flcl42 flcl42 marked this pull request as ready for review June 29, 2023 13:30
src/engine/cancun.md Outdated Show resolved Hide resolved
src/engine/cancun.md Outdated Show resolved Hide resolved
@flcl42 flcl42 force-pushed the clarify-payload-api-checks branch from f0f5ba7 to 55c1b63 Compare July 10, 2023 12:51
Copy link
Collaborator

@mkalinin mkalinin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! 👍

Copy link
Contributor

@g11tech g11tech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

src/engine/cancun.md Outdated Show resolved Hide resolved
@flcl42 flcl42 force-pushed the clarify-payload-api-checks branch from 1ce7366 to 806e44d Compare August 3, 2023 15:46
@flcl42 flcl42 force-pushed the clarify-payload-api-checks branch from 806e44d to 292f5be Compare August 3, 2023 15:48
Copy link
Member

@jochem-brouwer jochem-brouwer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love the change to first do input checks, then the timestamp check. LGTM!

@@ -96,14 +94,16 @@ Refer to the response for [`engine_newPayloadV2`](./shanghai.md#engine_newpayloa

This method follows the same specification as [`engine_newPayloadV2`](./shanghai.md#engine_newpayloadv2) with the addition of the following:

1. Given the expected array of blob versioned hashes client software **MUST** run its validation by taking the following steps:
1. Client software **MUST** check that provided set of parameters and their fields strictly matches the expected one and return `-32602: Invalid params` error if this check fails. Any field having `null` value **MUST** be considered as not provided.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 for first checking correct fields before timestamp

src/engine/cancun.md Outdated Show resolved Hide resolved
Co-authored-by: g11tech <develop@g11tech.io>
@flcl42 flcl42 force-pushed the clarify-payload-api-checks branch from 32259b5 to ad2ccb0 Compare August 4, 2023 05:20
@flcl42 flcl42 requested a review from mkalinin August 4, 2023 05:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants