Skip to content

Commit c52a8f5

Browse files
committed
descriptor: allow U type children for thresh() expressions
The reference implementation at https://bitcoin.sipa.be/miniscript/ allows these as shown in the upcoming test case.
1 parent 12f5ac4 commit c52a8f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/descriptor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ static int verify_thresh(ms_ctx *ctx, ms_node *node)
962962
for (child = top->next; child; child = child->next) {
963963
const uint32_t expected_type = count ? TYPE_W : TYPE_B;
964964

965-
if (!child->builtin || (~child->type_properties & (expected_type | PROP_D | PROP_U)))
965+
if (!child->builtin || (~child->type_properties & (expected_type | PROP_D)))
966966
return WALLY_EINVAL;
967967

968968
if (~child->type_properties & PROP_E)

0 commit comments

Comments
 (0)