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

triedb/pathdb: fix state revert on v2 history #31060

Merged
merged 3 commits into from
Jan 22, 2025

Conversation

rjl493456442
Copy link
Member

State history v2 has been shipped and will take effect after the Cancun fork.
However, the state revert function does not differentiate between v1 and v2,
instead blindly using the storage map key for state reversion.

This mismatch between the keys of the live state set and the state history
can trigger a panic: non-existent storage slot for reverting.

This flaw has been fixed in this PR.

@rjl493456442 rjl493456442 added this to the 1.14.13 milestone Jan 22, 2025
zsfelfoldi
zsfelfoldi previously approved these changes Jan 22, 2025
Copy link
Contributor

@zsfelfoldi zsfelfoldi left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@MariusVanDerWijden MariusVanDerWijden left a comment

Choose a reason for hiding this comment

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

LGTM

@MariusVanDerWijden MariusVanDerWijden merged commit a840e9b into ethereum:master Jan 22, 2025
2 of 3 checks passed
@fjl fjl modified the milestones: 1.14.13, 1.15.0 Jan 23, 2025
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.

4 participants