Skip to content

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

Merged
mkalinin merged 7 commits intoethereum:mainfrom
flcl42:clarify-payload-api-checks
Aug 4, 2023
Merged

Clarify Cancun payloads handling by earlier APIs; reorder checks#426
mkalinin merged 7 commits intoethereum:mainfrom
flcl42:clarify-payload-api-checks

Conversation

@flcl42
Copy link
Copy Markdown
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
Comment thread src/engine/cancun.md Outdated
Comment thread src/engine/cancun.md Outdated
@flcl42 flcl42 force-pushed the clarify-payload-api-checks branch from f0f5ba7 to 55c1b63 Compare July 10, 2023 12:51
Copy link
Copy Markdown
Contributor

@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
Copy Markdown
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

Comment thread src/engine/cancun.md Outdated
@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
Copy Markdown
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!

Comment thread src/engine/cancun.md
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
Copy Markdown
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

Comment thread src/engine/cancun.md Outdated
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