psbt: really hacky patch over libwally's 0-input txs parse fail

Issue being tracked at https://github.com/ElementsProject/libwally-core/pull/273
This commit is contained in:
niftynei 2021-04-26 12:00:37 -05:00 committed by Rusty Russell
parent ef9d8bcd5a
commit de854fa9d4

View File

@ -688,6 +688,11 @@ struct wally_psbt *psbt_from_b64(const tal_t *ctx,
else else
psbt = NULL; psbt = NULL;
tal_wally_end(tal_steal(ctx, psbt)); 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; return psbt;
} }