starknet_patricia: thread the leaf output map separately from LeafSource#14600
Conversation
PR SummaryLow Risk Overview
The duplicate Reviewed by Cursor Bugbot for commit 0427a83. Bugbot is set up for automated code reviews on this repo. Configure here. |
nimrod-starkware
left a comment
There was a problem hiding this comment.
@nimrod-starkware reviewed 1 file and all commit messages, and made 1 comment.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on yoavGrs).
2126e16 to
0022d3b
Compare
997083a to
3efa5f7
Compare
Move leaf_index_to_leaf_output out of the LeafSource::ComputeLeaves variant and pass it to compute_filled_tree_rec as its own Arc, mirroring filled_tree_output_map. This lets create reclaim the leaf output map via the existing remove_arc_mutex_and_option_from_output_map helper instead of unwrapping the shared LeafSource Arc and matching a single variant with an unreachable! arm. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0022d3b to
0427a83
Compare
3efa5f7 to
01f17ad
Compare
|
Security scan complete — no issues detected. Generated by Claude Code |

Move leaf_index_to_leaf_output out of the LeafSource::ComputeLeaves variant and
pass it to compute_filled_tree_rec as its own Arc, mirroring filled_tree_output_map.
This lets create reclaim the leaf output map via the existing
remove_arc_mutex_and_option_from_output_map helper instead of unwrapping the shared
LeafSource Arc and matching a single variant with an unreachable! arm.
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com