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 Merkle proofs considered as invalid when they contain a storage value that decodes as a trie node #1504

Merged
merged 6 commits into from
Dec 22, 2023

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented Dec 22, 2023

Close #1362

We now properly ignore entire tries if one of their nodes fails to successfully decode.
The "unvisited entries" system is there to make sure that nodes that fail to decode as indeed used by the ones that successfully decode.

Additionally, this PR contains a very small optimization in that we save the decoding result in the initial list of entries that we build at the beginning, instead of decoding each trie node multiple times.

@tomaka tomaka added this pull request to the merge queue Dec 22, 2023
Merged via the queue into smol-dot:main with commit 0e1a64d Dec 22, 2023
22 checks passed
@tomaka tomaka deleted the proof-decode-refactor-again branch December 22, 2023 11:02
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.

1 participant