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

Merge shardtree hotfixes back to main & update shardtree to incrementalmerkletree 0.8.0 #124

Merged
merged 7 commits into from
Dec 12, 2024

Conversation

nuttycom
Copy link
Contributor

No description provided.

pub fn from_parts(root_addr: Address, root: Tree<A, V>) -> Option<Self> {
/// Returns the newly constructed error, or the address at which the provided tree extends
/// beyond the position range of the provided root address.
pub fn from_parts(root_addr: Address, root: Tree<A, V>) -> Result<Self, Address> {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I decided to change this to a Result instead of an Option because there are places in the ShardStore API that return Option<LocatedTree>, and I do not want inconsistency to be able to be confused with malformedness.

Copy link
Contributor

@daira daira left a comment

Choose a reason for hiding this comment

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

utACK

@daira daira merged commit 26e8b47 into main Dec 12, 2024
15 checks passed
@daira daira deleted the merge_shardtree_hotfix branch December 12, 2024 23: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.

3 participants