We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77c74f3 commit 43ee765Copy full SHA for 43ee765
common/psbt_internal.c
@@ -153,6 +153,9 @@ psbt_to_witnesses(const tal_t *ctx,
153
wit->witness_data = tal_arr(wit, u8, 0);
154
add_varint(&wit->witness_data, wtx_s->num_items);
155
for (size_t j = 0; j < wtx_s->num_items; j++) {
156
+ if (!wtx_s->items[j].witness_len)
157
+ continue;
158
+ assert(wtx_s->items[j].witness);
159
add_varint(&wit->witness_data, wtx_s->items[j].witness_len);
160
tal_expand(&wit->witness_data, wtx_s->items[j].witness,
161
wtx_s->items[j].witness_len);
0 commit comments