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 signed_root for block id purposes in blocks/state #816

Merged
merged 1 commit into from
Mar 20, 2019
Merged

Conversation

djrtwo
Copy link
Contributor

@djrtwo djrtwo commented Mar 20, 2019

Note: This PR is directly to master. I would like to release this ASAP as a v0.5.1 release.

Addresses #797 by using signed_root when caching block headers in state and when assessing validity of block.previous_block_root.

When discussing a blocks "hash" or "root" it should be considered as the signed_root(block) to truncate off the signature which avoids an external dependency in the state transition function.

@djrtwo djrtwo requested review from JustinDrake and vbuterin and removed request for JustinDrake March 20, 2019 15:24
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.

None yet

3 participants