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

fix: cancun transaction executor #2159

Merged
merged 3 commits into from Mar 18, 2024

Conversation

charles-cooper
Copy link
Contributor

@charles-cooper charles-cooper commented Mar 18, 2024

in chain.estimate_gas(), the chain creates a snapshot, applies a transaction, then reverts the snapshot. the issue with this is applying a transaction creates a new JournalDB inside of the transient storage, so the checkpoint from the snapshot is no longer valid as soon as apply_transaction() is called. this commit cleans the transient storage db by calling JournalDB.clear() so that the checkpoint from the snapshot is still valid.

What was wrong?

Related to Issue #
Closes #

How was it fixed?

Todo:

  • Clean up commit history

  • Add or update documentation related to these changes

  • Add entry to the release notes

Cute Animal Picture

image

in chain.estimate_gas(), the chain creates a snapshot, applies a
transaction, then reverts the snapshot. the issue with this is applying
a transaction creates a new JournalDB inside of the transient storage,
so the checkpoint from the snapshot is no longer valid as soon as
apply_transaction() is called. this commit cleans the transient storage
db by calling JournalDB.clear() so that the checkpoint from the snapshot
is still valid.
@pacrob pacrob merged commit 83b0728 into ethereum:main Mar 18, 2024
46 checks passed
@charles-cooper charles-cooper deleted the fix/cancun-txn-executor branch March 18, 2024 21:35
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.

None yet

2 participants