Skip to content

Commit 07b766a

Browse files
committed
descriptor: disable elements address generation until it is implemented
1 parent 3e2081e commit 07b766a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/descriptor.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2881,6 +2881,13 @@ int wally_descriptor_to_addresses(const struct wally_descriptor *descriptor,
28812881
if (!(p = wally_malloc(descriptor->script_len)))
28822882
return WALLY_ENOMEM;
28832883

2884+
if (descriptor->features & WALLY_MS_IS_ELEMENTS) {
2885+
/* Disable Elements address generation until:
2886+
* - It is reconciled with Elements-core, and
2887+
* - We support blinded addresses
2888+
*/
2889+
return WALLY_ERROR;
2890+
}
28842891
memcpy(&ctx, descriptor, sizeof(ctx));
28852892
ctx.variant = variant;
28862893
if (ctx.max_path_elems &&

0 commit comments

Comments
 (0)