signpsbt_done: don't try to access global tx in exception

This commit is contained in:
Greg Sanders 2023-05-23 06:55:09 -04:00 committed by Rusty Russell
parent 56bb757b5f
commit 69f74a92e6

View file

@ -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",