From ff164cf8b323fecba59dbfaa0d4519bb665568d2 Mon Sep 17 00:00:00 2001 From: niftynei Date: Mon, 5 Apr 2021 13:44:07 -0500 Subject: [PATCH] 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 --- bitcoin/psbt.c | 4 ++++ 1 file changed, 4 insertions(+) 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; }