Skip to content

Conversation

sashass1315
Copy link
Contributor

Describe your changes

Add a guard ensuring the requested forest does not exceed self.forest before building the Merkle path. This aligns open_at with existing validation in peaks_at and get_delta, and prevents potential out-of-bounds indexing and panics when callers pass an invalid forest.

@huitseeker huitseeker added the no changelog This PR does not require an entry in the `CHANGELOG.md` file label Sep 30, 2025
Copy link
Contributor

@huitseeker huitseeker left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@bobbinth bobbinth left a comment

Choose a reason for hiding this comment

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

Looks good! Thank you for addressing all the comments!

@bobbinth bobbinth merged commit 6a53a6e into 0xMiden:next Sep 30, 2025
22 checks passed
@sashass1315
Copy link
Contributor Author

Looks good! Thank you for addressing all the comments!

Good to know that i've made a small thing for your project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no changelog This PR does not require an entry in the `CHANGELOG.md` file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants