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

Wrapped WorldUpdater into EVMWorldupdater #7434

Merged
merged 4 commits into from
Aug 12, 2024

Conversation

daniellehrner
Copy link
Contributor

PR description

In a first version of 7702 the code injection into the EOA accounts required every class that implements the WorldUpdater interface to have the correct plumbing to inject that code from 7702 transactions. This PR introduces a new world updater EVMWorldUpdater which wraps the actual world updater and the code injection only needs to happen in this new wrapper. The previous code injection is removed from the other world updaters.

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

…ode injection from the implementation of the actual world updaters

Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
Copy link
Contributor

@jflo jflo left a comment

Choose a reason for hiding this comment

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

Cleans up a leaky abstraction, hooray!

@macfarla macfarla enabled auto-merge (squash) August 12, 2024 21:05
@macfarla macfarla merged commit b53db47 into hyperledger:main Aug 12, 2024
40 checks passed
@daniellehrner daniellehrner deleted the wrap_worldupdater_evm branch August 13, 2024 07:11
gconnect pushed a commit to gconnect/besu that referenced this pull request Aug 26, 2024
* wrapped WorldUpdater into `EVMWorldupdater` to remove the authority code injection from the implementation of the actual world updaters

Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>

* add CHANGELOG entry

Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>

---------

Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
Co-authored-by: Justin Florentine <justin+github@florentine.us>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: gconnect <agatevureglory@gmail.com>
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.

3 participants