mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
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:
parent
ef9d8bcd5a
commit
de854fa9d4
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user