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 #101

Merged
merged 2 commits into from
Jun 26, 2024
Merged

Fix canopy size check #101

merged 2 commits into from
Jun 26, 2024

Conversation

n00m4d
Copy link
Contributor

@n00m4d n00m4d commented Jun 19, 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 requested a review from danenbm June 19, 2024 21:26
Copy link

vercel bot commented Jun 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mpl-bubblegum-js-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 21, 2024 10:22am

@danenbm danenbm merged commit 4863ca1 into main Jun 26, 2024
11 checks passed
@danenbm danenbm deleted the fix/canopy-size-check branch June 26, 2024 15:36
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.

2 participants