Skip to content

Conversation

@daniellehrner
Copy link
Contributor

PR description

If a request is empty it will be ignored from the calculation of the request hash. This changes the hash for empty requests, which needed to be updated in the tests

Fixed Issue(s)

fixes #7947

Thanks for sending a pull request! Have you done the following?

  • Checked out our contribution guidelines?
  • Considered documentation and added the doc-change-required label to this PR if updates are required.
  • Considered the changelog and included an update if required.
  • For database changes (e.g. KeyValueSegmentIdentifier) considered compatibility and performed forwards and backwards compatibility tests

Locally, you can run these tests to catch failures early:

  • unit tests: ./gradlew build
  • acceptance tests: ./gradlew acceptanceTest
  • integration tests: ./gradlew integrationTest
  • reference tests: ./gradlew ethereum:referenceTests:referenceTests

siladu and others added 16 commits December 18, 2024 19:52
…com:daniellehrner/besu into feat/issue-7947/exclude_empty_requests_hash
Signed-off-by: Daniel Lehrner <[email protected]>
Signed-off-by: Daniel Lehrner <[email protected]>
@daniellehrner daniellehrner merged commit 8308650 into hyperledger:main Jan 14, 2025
44 checks passed
@daniellehrner daniellehrner deleted the feat/issue-7947/exclude_empty_requests_hash branch January 14, 2025 18:45
pullurib pushed a commit to pullurib/besu that referenced this pull request Feb 6, 2025
* exclude empty requests from requests hash

Signed-off-by: Daniel Lehrner <[email protected]>

* Exclude empty requests and prepend request type byte in engine_getPayloadV4

Fixes ethereum/execution-apis#599 change to EIP-7685

Signed-off-by: Simon Dudley <[email protected]>

* fix test

Signed-off-by: Daniel Lehrner <[email protected]>

* fix prague tests: change request hash, reorder json elements

Signed-off-by: Daniel Lehrner <[email protected]>

* fix extracting of request for new payload

Signed-off-by: Daniel Lehrner <[email protected]>

* fix test by fixing request object creation

Signed-off-by: Daniel Lehrner <[email protected]>

* spotless

Signed-off-by: Daniel Lehrner <[email protected]>

* set request type to only one byte, fixed creation of request list in T8nExecutor

Signed-off-by: Daniel Lehrner <[email protected]>

* fix expected json output to exclude empty requests

Signed-off-by: Daniel Lehrner <[email protected]>

---------

Signed-off-by: Daniel Lehrner <[email protected]>
Signed-off-by: Simon Dudley <[email protected]>
Co-authored-by: Simon Dudley <[email protected]>
Signed-off-by: Bhanu Pulluri <[email protected]>
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.

Pectra-Devnet-5: exclude empty requests data in commitment

3 participants