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

Use hash_tree_root everywhere #739

Merged
merged 6 commits into from
Mar 8, 2019
Merged

Use hash_tree_root everywhere #739

merged 6 commits into from
Mar 8, 2019

Conversation

JustinDrake
Copy link
Collaborator

And get rid of merkle_root. This is possible because of SSZ tuples.

And get rid of merkle_root. This is possible because of SSZ tuples.
@vbuterin
Copy link
Contributor

vbuterin commented Mar 8, 2019

I don't see how this can be valid python. hash_tree_root for non-SSZ-containers doesn't distinguish between fixed size and variable size lists, but the spec does. Maybe add an optional typ argument to hash_tree_root ?

@JustinDrake
Copy link
Collaborator Author

I defined a new SSZ object :)

@djrtwo
Copy link
Contributor

djrtwo commented Mar 8, 2019

I'll make sure this runs in the executable spec before merging

@djrtwo
Copy link
Contributor

djrtwo commented Mar 8, 2019

lol found a couple of other bugs when running the state transition through many empty epochs! patching a fix in another PR

Copy link
Contributor

@djrtwo djrtwo left a comment

Choose a reason for hiding this comment

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

tests pass!

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