diff --git a/bitcoin/psbt.c b/bitcoin/psbt.c index 049062765..249f1acda 100644 --- a/bitcoin/psbt.c +++ b/bitcoin/psbt.c @@ -739,6 +739,10 @@ struct wally_psbt *psbt_from_bytes(const tal_t *ctx, const u8 *bytes, psbt = NULL; tal_wally_end(tal_steal(ctx, psbt)); + /* FIXME: Patch for the empty-tx bug in libwally */ + if (!psbt && byte_len == 19) + psbt = create_psbt(ctx, 0, 0, 0); + return psbt; }