]> Untitled Git - bdk-cli/commit
fix(compile): compile only for the requested script context
authorVadim Anufriev <m@vaan.io>
Fri, 21 Aug 2026 11:21:27 +0000 (15:21 +0400)
committerVadim Anufriev <m@vaan.io>
Mon, 5 Oct 2026 18:38:24 +0000 (22:38 +0400)
commiteadbdc7db8b80728d8dfd2dafadf6f4f901afb16
tree04e590395b12dda67bc539676055b7a02f60970a
parent1377a3066173099a66d19058420144872e616b8d
fix(compile): compile only for the requested script context

Compiling for all three contexts let the narrowest one reject a policy
that is valid for the requested type: a 9-of-16 multisig, fine as
taproot multi_a, failed even for --type tr because legacy hit the
520-byte consensus limit on script elements.

The same policy also panicked for --type wsh,
which the test now covers.
CHANGELOG.md
src/handlers/descriptor.rs
tests/integration/init.rs