From 69f74a92e6208ba9a41cf9b623999055277283fc Mon Sep 17 00:00:00 2001 From: Greg Sanders Date: Tue, 23 May 2023 06:55:09 -0400 Subject: [PATCH] signpsbt_done: don't try to access global tx in exception --- plugins/txprepare.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/txprepare.c b/plugins/txprepare.c index a80376813..69994d331 100644 --- a/plugins/txprepare.c +++ b/plugins/txprepare.c @@ -168,9 +168,8 @@ static struct command_result *signpsbt_done(struct command *cmd, "Signed tx changed txid? Had '%s' now '%s'", tal_hex(tmpctx, linearize_wtx(tmpctx, utx->tx)), - tal_hex(tmpctx, - linearize_wtx(tmpctx, - utx->psbt->tx))); + type_to_string(tmpctx, struct wally_psbt, + utx->psbt)); } req = jsonrpc_request_start(cmd->plugin, cmd, "sendpsbt",