Skip to content

feat: cascade improvements#130

Merged
0xForerunner merged 9 commits intomainfrom
forerunner/cascade-improvements
Mar 8, 2026
Merged

feat: cascade improvements#130
0xForerunner merged 9 commits intomainfrom
forerunner/cascade-improvements

Conversation

@0xForerunner
Copy link
Contributor

Makes set_leaf more flexible
Adds method to get empty value

Copy link

@alessandromazza98 alessandromazza98 left a comment

Choose a reason for hiding this comment

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

LGTM. I left a comment on the actual utilityZ - i.e. where do we use this feature?

Still approving though because it's definitely not breaking the previous api

self.storage.propagate_up(index);
self.recompute_root();
} else {
let num_zeros = leaf - num_leaves;

Choose a reason for hiding this comment

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

Is this useful in practice? It may sound confusing to use set_leaf for a non initialized leaf

@alessandromazza98
Copy link

Oh, CI is not passing, you can take a look at it before merging it

@0xForerunner 0xForerunner merged commit 8f17283 into main Mar 8, 2026
8 checks passed
@0xForerunner 0xForerunner deleted the forerunner/cascade-improvements branch March 8, 2026 02:27
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