Skip to content

Commit

Permalink
psbt: really hacky patch over libwally's 0-input txs parse fail
Browse files Browse the repository at this point in the history
Issue being tracked at ElementsProject/libwally-core#273
  • Loading branch information
niftynei authored and rustyrussell committed May 12, 2021
1 parent ef9d8bc commit de854fa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bitcoin/psbt.c
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,11 @@ struct wally_psbt *psbt_from_b64(const tal_t *ctx,
else
psbt = NULL;
tal_wally_end(tal_steal(ctx, psbt));

/* FIXME: Patch for the empty-tx bug in libwally */
if (!psbt && strlen(str) == 28)
psbt = create_psbt(ctx, 0, 0, 0);

return psbt;
}

Expand Down

0 comments on commit de854fa

Please sign in to comment.