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 canopy size check #7

Merged
merged 2 commits into from
Jul 5, 2024
Merged

Fix canopy size check #7

merged 2 commits into from
Jul 5, 2024

Conversation

n00m4d
Copy link
Collaborator

@n00m4d n00m4d commented Jun 20, 2024

What

This PR fixes canopy size check in CreateTree instruction.

Why

Such as canopy stores N layers of whole tree it is a small tree itself. Before this fix that method was comparing path length with number of nodes in canopy which is wrong.

How

This fix uses get_cached_path_length() method from account-compression program which takes slice of canopy nodes and returns canopy path length.

@n00m4d n00m4d merged commit 54a6a6a into feature/cleanup Jul 5, 2024
6 of 7 checks passed
@n00m4d n00m4d deleted the fix/canopy-check branch July 5, 2024 13:51
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.

3 participants