MCPcopy Create free account
hub / github.com/ElementsProject/lightning / command_success

Function command_success

plugins/libplugin.c:392–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390}
391
392struct command_result *WARN_UNUSED_RESULT
393command_success(struct command *cmd, const struct json_out *result)
394{
395 struct json_stream *js = jsonrpc_stream_start(cmd);
396
397 json_out_add_splice(js->jout, "result", result);
398 return command_complete(cmd, js);
399}
400
401struct command_result *command_done_err(struct command *cmd,
402 enum jsonrpc_errcode code,

Callers 2

handle_initFunction · 0.70
json_helloworldFunction · 0.50

Calls 3

jsonrpc_stream_startFunction · 0.85
json_out_add_spliceFunction · 0.85
command_completeFunction · 0.85

Tested by 1

json_helloworldFunction · 0.40