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(trie): witness generation #12859

Open
rkrasiuk opened this issue Nov 26, 2024 · 0 comments · May be fixed by #13072
Open

fix(trie): witness generation #12859

rkrasiuk opened this issue Nov 26, 2024 · 0 comments · May be fixed by #13072
Assignees
Labels
A-trie Related to Merkle Patricia Trie implementation C-bug An unexpected or incorrect behavior

Comments

@rkrasiuk
Copy link
Member

Description

Generated witness does not always include all the nodes as shown in main...meyer9:reth:meyer9/account-proof-test

This is caused by next_root_from_proofs function not being robust enough when determining which trie node to pass to the hash builder.

Fix

Remove next_root_from_proofs and integrate witness with SparseTrie.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-trie Related to Merkle Patricia Trie implementation C-bug An unexpected or incorrect behavior
Projects
Status: Todo
Development

Successfully merging a pull request may close this issue.

1 participant