-
Notifications
You must be signed in to change notification settings - Fork 20.9k
trie: fix range prover #22210
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 #22210
Conversation
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, minor comments
Erm, doesn't this PR always return |
Oh, there was a true, just in a new return line so it didn't get extra-highlighted. Sry for the noise. |
@karalabe You can run this test and it will return true https://github.com/ethereum/go-ethereum/pull/22210/files#diff-37d2520502076e40fa878b9a2cf4606e782daefe7c56acbd4eb0b84b0d39c74fR389 |
Fixes a special case when the trie only has a single trie node and the range proof only contains a single element.
Fixes a special case when the trie only has a single trie node and the range proof only contains a single element.
Fixes a special case when the trie only has a single trie node and the range proof only contains a single element.
Fixes a special case when the trie only has a single trie node and the range proof only contains a single element.
Fixes a special case when the trie only has a single trie node and the range proof only contains a single element.
Fixes the issue described #22179 (comment)
It's a special case that the trie only has a single trie node and the range proof only contains a single element.