From 3c4c8d4fa014c8b716f54cb703cdfd7e5a9e9ea0 Mon Sep 17 00:00:00 2001 From: niftynei Date: Tue, 1 Jun 2021 12:14:48 -0500 Subject: [PATCH] libwally: update to release_0.8.3 Remove hacks to get around empty PSBT deserialization bug --- bitcoin/psbt.c | 8 -------- common/setup.c | 1 + external/libwally-core | 2 +- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/bitcoin/psbt.c b/bitcoin/psbt.c index c3f294e39..df76d4e6c 100644 --- a/bitcoin/psbt.c +++ b/bitcoin/psbt.c @@ -689,10 +689,6 @@ struct wally_psbt *psbt_from_b64(const tal_t *ctx, psbt = NULL; 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; } @@ -744,10 +740,6 @@ 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; } diff --git a/common/setup.c b/common/setup.c index 2ea41f5a2..88fb25b4a 100644 --- a/common/setup.c +++ b/common/setup.c @@ -19,6 +19,7 @@ static void wally_free(void *ptr) } static struct wally_operations wally_tal_ops = { + .struct_size = sizeof(struct wally_operations), .malloc_fn = wally_tal, .free_fn = wally_free, }; diff --git a/external/libwally-core b/external/libwally-core index bf81e8b17..46a3db9b7 160000 --- a/external/libwally-core +++ b/external/libwally-core @@ -1 +1 @@ -Subproject commit bf81e8b17069020dec0638e352298770aa382952 +Subproject commit 46a3db9b7bce9179430d81ee10bcd25ace5616e4