mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-20 13:54:36 +01:00
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:
parent
64b0487228
commit
3cfafa81eb
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue