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

Function command_success

plugins/libplugin.c:582–591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580}
581
582struct command_result *WARN_UNUSED_RESULT
583command_success(struct command *cmd, const struct json_out *result)
584{
585 struct json_stream *js = jsonrpc_stream_start(cmd);
586 assert(cmd->type == COMMAND_TYPE_NORMAL
587 || cmd->type == COMMAND_TYPE_HOOK);
588
589 json_out_add_splice(js->jout, "result", result);
590 return command_complete(cmd, js);
591}
592
593struct command_result *command_done_err(struct command *cmd,
594 enum jsonrpc_errcode code,

Callers 12

handle_initFunction · 0.70
get_ds_doneFunction · 0.50
json_helloworldFunction · 0.50
spam_doneFunction · 0.50
rescan_completeFunction · 0.50
json_bwatch_del_outpointFunction · 0.50
json_bwatch_del_scidFunction · 0.50
json_bwatch_listFunction · 0.50

Calls 3

jsonrpc_stream_startFunction · 0.85
json_out_add_spliceFunction · 0.85
command_completeFunction · 0.85

Tested by 3

get_ds_doneFunction · 0.40
json_helloworldFunction · 0.40
spam_doneFunction · 0.40