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

Revert "Fixup merkle-value" #702

Merged
merged 2 commits into from
Sep 17, 2023
Merged

Revert "Fixup merkle-value" #702

merged 2 commits into from
Sep 17, 2023

Conversation

tjjfvi
Copy link
Contributor

@tjjfvi tjjfvi commented Sep 11, 2023

Reverts #698

As discussed in the comments of that PR, the behavior described before by the spec was correct – a node is inlined only if len < 32.

This reverts commit 4b4b74e, reversing
changes made to 9f6d48a.
@bkchr
Copy link
Contributor

bkchr commented Sep 11, 2023

IMO we should maybe just get rid off this merkle value. This is used no where in the spec and I only see it bringing confusion, than any help in understanding the spec or whatever.

@tjjfvi
Copy link
Contributor Author

tjjfvi commented Sep 11, 2023

It is referenced here, in the definition of the subvalue of a trie node.

Copy link
Collaborator

@Noc2 Noc2 left a comment

Choose a reason for hiding this comment

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

@tjjfvi and @bkchr, thanks a lot for the PR and the active discussion/contribution here. If you plan to contribute more, I'm also happy to add you to the spec committee. https://github.com/w3f/polkadot-spec#spec-committee (approve PRs).

@tjjfvi
Copy link
Contributor Author

tjjfvi commented Sep 11, 2023

@Noc2 Thanks; I would definitely be open to joining the committee. (I have been working on implementing the protocol, and do plan to contribute fixes back to the spec when I have time.)

@heversonbr heversonbr self-requested a review September 15, 2023 15:50
Copy link
Contributor

@heversonbr heversonbr left a comment

Choose a reason for hiding this comment

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

Definition reverted correctly.

docs/chap-state.md Outdated Show resolved Hide resolved
Co-authored-by: Sebastian Kunert <[email protected]>
@Noc2 Noc2 merged commit f22d229 into w3f:main Sep 17, 2023
1 check passed
@tjjfvi tjjfvi deleted the revert-merkle-value branch September 18, 2023 12:05
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.

5 participants