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
This commit is contained in:
lisa neigut 2020-05-01 18:04:05 -05:00 committed by Christian Decker
parent 64b0487228
commit 3cfafa81eb

View file

@ -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);
}