mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
psbt: temporarily patch over failure to parse the empty tx
libwally has a bug which results in it failing to parse the 'empty tx' cHNidP8BAAoAAAAAAAAAAAAAAA==. While we wait for the patch to land in libwally, we patch over it. Fix at: https://github.com/ElementsProject/libwally-core/pull/273
This commit is contained in:
parent
a948cf5c10
commit
ff164cf8b3
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user