-
Notifications
You must be signed in to change notification settings - Fork 21.6k
trie: fix range prover #24266
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: fix range prover #24266
Conversation
| return false, errors.New("more entries available") | ||
| } | ||
| return hasRightElement(root, firstKey), nil | ||
| return false, nil |
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.
This looks strange. With this change, this entire clause will always return false in the first return-parameter, I think
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.
Edit: nevermind, I think this is fine
holiman
left a comment
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
|
Please add the testcase too |
|
Actually, no need to add the testcase, we can merge the other PR too |
Co-authored-by: rjl493456442 <[email protected]>
Fixes #24257