mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +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:
committed by
Christian Decker
parent
64b0487228
commit
3cfafa81eb
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user