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

Fixes to also support storage tries #16

Merged
merged 2 commits into from
May 6, 2020

Conversation

gballet
Copy link

@gballet gballet commented Apr 28, 2020

This fixes two cases in ReStackTrie that were found when using it for calculating the root of a storage trie.

  • If len(val) < 128
  • Only using 0xb8 if len(val) > 56, and not systematically when the node is a leaf.

I have been able to calculate the hash of Goerli, including the storage slots.

@gballet gballet changed the title Fixes to also support Fixes to also support storage tries Apr 30, 2020
@holiman holiman merged commit ddda96e into holiman:trie_gen May 6, 2020
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.

2 participants