From 3cfafa81ebdf133d5c30f2ee60da19c4d95ac89f Mon Sep 17 00:00:00 2001 From: lisa neigut Date: Fri, 1 May 2020 18:04:05 -0500 Subject: [PATCH] bcli-bugfix: pass along entire script sizeof doesn't give the correct length, instead use tal_hex which will measure the script length correctly Changelog-None --- plugins/bcli.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/bcli.c b/plugins/bcli.c index 6412cd105..013c7cf54 100644 --- a/plugins/bcli.c +++ b/plugins/bcli.c @@ -381,8 +381,7 @@ static struct command_result *process_getutxout(struct bitcoin_cli *bcli) response = jsonrpc_stream_success(bcli->cmd); json_add_amount_sat_only(response, "amount", output.amount); - json_add_string(response, "script", - tal_hexstr(response, output.script, sizeof(output.script))); + json_add_string(response, "script", tal_hex(response, output.script)); return command_finished(bcli->cmd, response); }