-
Notifications
You must be signed in to change notification settings - Fork 120
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
Light Client Root Hash for Block #856
Conversation
See #768 for a previous attempt at this change, and the associated discussion. |
Blocked by data dependency problems, which need design changes or refactoring. |
@teor2345 pointed out that we need not just the block height but also the network in order to interpret the field, because the block height at which the interpretation changes depends on the network, and this doesn't fit with the |
* use the right variant in LightClientRootHash::from_bytes() * make block.header.light_client_root_hash pub(super) * add tests for LightClientRootHash and block.light_client_root_hash
c3838db
to
59ad203
Compare
I implemented this design as |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Parse the LightClientRootHash using
block.light_client_root_hash(network)
.