Skip to content

feat(consume): add ExceptionMapper support to the consume-engine simulator #1416

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

Merged
merged 40 commits into from
Apr 17, 2025

Conversation

marioevz
Copy link
Member

@marioevz marioevz commented Apr 9, 2025

🗒️ Description

Adds support of the exception mapper to consume-engine:

consume engine now checks exceptions returned by the execution clients in their Engine API responses, specifically in the validationErrorfield of the engine_newPayloadVX method.

Exception mappers of all current mainnet clients have been added to the ethereum_clis library.

The feature can be disabled by using --disable-strict-exception-matching for specific clients or forks.

🔗 Related Issues

✅ Checklist

  • All: Set appropriate labels for the changes.
  • All: Considered squashing commits to improve commit history.
  • All: Added an entry to CHANGELOG.md.
  • All: Considered updating the online docs in the ./docs/ directory.
  • Tests: All converted JSON/YML tests from ethereum/tests have been added to converted-ethereum-tests.txt.
  • Tests: A PR with removal of converted JSON/YML tests from ethereum/tests have been opened.
  • Tests: Included the type and version of evm t8n tool used to locally execute test cases: e.g., ref with commit hash or geth 1.13.1-stable-3f40e65.
  • Tests: Ran mkdocs serve locally and verified the auto-generated docs for new tests in the Test Case Reference are correctly formatted.

@danceratopz danceratopz changed the title feat(plugins/consume): Support Exception Mapper feat(consume): add ExceptionMapper support to the consume-engine simulator Apr 11, 2025
@danceratopz danceratopz added type:feat type: Feature scope:consume Scope: Consume command suite labels Apr 11, 2025
@spencer-tb spencer-tb added the fork:prague Prague hardfork label Apr 14, 2025
@winsvega
Copy link
Contributor

winsvega commented Apr 14, 2025

I found there are some issue with refactored exception mapper. perhaps this can be address in here in this PR
if not fixed already (some)
#1440

Copy link
Contributor

@winsvega winsvega left a comment

Choose a reason for hiding this comment

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

waut the complexity of exception mapper is growing. I need to study python again.

Copy link
Member

@danceratopz danceratopz left a comment

Choose a reason for hiding this comment

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

Love this, few suggestions, also in #1464.

@marioevz marioevz marked this pull request as ready for review April 16, 2025 17:07
@marioevz marioevz force-pushed the exception-mapper-consume branch from 27845aa to ce47dbb Compare April 16, 2025 23:53
Copy link
Member

@danceratopz danceratopz left a comment

Choose a reason for hiding this comment

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

LGTM!

@marioevz marioevz merged commit cb4ccde into main Apr 17, 2025
22 checks passed
@marioevz marioevz deleted the exception-mapper-consume branch April 17, 2025 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fork:prague Prague hardfork scope:consume Scope: Consume command suite type:feat type: Feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants