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:
niftynei 2021-04-05 13:44:07 -05:00 committed by Rusty Russell
parent a948cf5c10
commit ff164cf8b3

View File

@ -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;
}