This repository was archived by the owner on Oct 22, 2026. It is now read-only.
Repository navigation
Fix panic in compile_tr_private_experimental for non-expandable policies - #917
Merged
apoelstra merged 1 commit intoApr 9, 2026
Merged
Conversation
vadim-anfv
reviewed
Apr 7, 2026
…andable policies Keep pol_prob_map in sync with tapleaf_prob_vec by removing entries from both data structures together. Previously, removing a node from tapleaf_prob_vec without removing it from pol_prob_map caused a panic when expand_fn returned the same policy (e.g. for pk(A) or and(pk(A),pk(B))). Fixes rust-bitcoin#902
febyeji
force-pushed
the
fix-compile-tr-private-panic
branch
from
April 7, 2026 11:58
c9cde1e to
f728d78
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #902.
pol_prob_mapin sync withtapleaf_prob_vecby removing entries from both data structures together.tapleaf_prob_vecwithout removing it frompol_prob_mapcaused a panic whenexpand_fnreturned the same policy (e.g. forpk(A)orand(pk(A),pk(B))).