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

[bug] Merkle tree constructor #499

Closed
mrain opened this issue Feb 27, 2024 · 0 comments · Fixed by #500
Closed

[bug] Merkle tree constructor #499

mrain opened this issue Feb 27, 2024 · 0 comments · Fixed by #500
Assignees

Comments

@mrain
Copy link
Contributor

mrain commented Feb 27, 2024

@jbearer: If we construct a merkle tree with one element without setting the height, we will infer a height of 0. However, we always build a merkle tree whose root is a branch. This causes an underflow and out of bounds exception here when we subtract 1 from the height of 0

@mrain mrain self-assigned this Feb 27, 2024
@mrain mrain mentioned this issue Feb 27, 2024
6 tasks
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 a pull request may close this issue.

1 participant