Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Trie (non)-membership proofs #7509
Trie (non)-membership proofs #7509
Changes from all commits
2d109bb
3c06b44
7fc3c31
1ee7177
29f59bf
dd27edf
06c600c
d02a53d
ad89b97
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
It would be best to push this change as separate PR. That would make this PR smaller and easier to understand.
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.
I'm unsure of what to do here.
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.
It’s just a matter of separating this diff hunk and all the places where retrieve_node is called into a new commit and submitting as separate PR. It will get this PR smaller.
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.
it's not super trivial as far as I see. Need to also modify
descend_into_node
. Can't we just keep it as it is?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.
It should be rather simple mechanical change. In that separate PR, the change to desdend_into_node will be change from
self.trie.retrieve_node(hash)?
toself.trie.retrieve_node(hash)?.1
.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.
That will happen in this PR.
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.
sorry @mina86 but I'm truly not following you on this one
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.
There are three separate PRs here:
retrieve_node(...)?.1
. This is quite mechanical and boring change but thanks to that it should be easy to write, review and merge. This PR is not concerned with the overall feature.prefix_boundary: bool
toCrumb
and changing Crumb::increment such that if that flag is set, it always moves to Exiting status. The purpose of this change is to make sure that when iterating over a prefix, the iterator does not fetch spurious nodes. Currently I believe that returned proof includes unnecessary nodes. There may be some smarter way of dealing with this but I’m not seeing it just now.1 and 2 can be done in parallel.
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.
For (2) I've created ComposableFi#11 Can you please review it there?
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.
For (1) #7535