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

Fix #2035 #2037

Merged
merged 5 commits into from
Nov 18, 2024
Merged

Fix #2035 #2037

merged 5 commits into from
Nov 18, 2024

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented Nov 18, 2024

Fix #2035

This took me some time, as I had to get a proper understanding of the code first, but I'm 99.9% confident that what my PR changes is just a stupid mistake as I used the wrong variable in this edge case.

Work time: 1h

return Err(IncompleteProofError());
}

for c in 0..key_before_nibble {
for c in 0..child_num {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note that this could be key_before_nibble as well, and in fact it would be slightly faster to keep key_before_nibble (we know that the range between key_before_nibble and child_num is always empty), but using child_num makes this code way less confusing.

@tomaka tomaka added this pull request to the merge queue Nov 18, 2024
Merged via the queue into smol-dot:main with commit 024c52b Nov 18, 2024
21 checks passed
@tomaka tomaka deleted the fix-2035 branch November 18, 2024 11:54
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.

chainHead_v1_call always yields operationInaccessible events for DryRunApi_dry_run_call
1 participant