mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user