Skip to content

core/state: state copy bugfixes with Verkle Trees #31696

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

yazzaoui
Copy link

This change addresses critical issues in the state object duplication process specific to Verkle trie implementations. Without these modifications, updates to state objects fail to propagate correctly through the trie structure after a statedb copy operation, leading to inaccuracies in the computation of the state root hash.

@yazzaoui yazzaoui requested a review from rjl493456442 as a code owner April 22, 2025 19:57
@@ -408,6 +408,7 @@ func (ch storageChange) copy() journalEntry {
account: ch.account,
key: ch.key,
prevvalue: ch.prevvalue,
origvalue: ch.origvalue,
Copy link
Member

Choose a reason for hiding this comment

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

Good catch!

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