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

Function command_raw_complete

lightningd/jsonrpc.c:524–535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

522}
523
524struct command_result *command_raw_complete(struct command *cmd,
525 struct json_stream *result)
526{
527 json_stream_close(result, cmd);
528
529 /* If we have a jcon, it will free result for us. */
530 if (cmd->jcon)
531 tal_steal(cmd->jcon, result);
532
533 tal_free(cmd);
534 return &complete;
535}
536
537struct command_result *command_success(struct command *cmd,
538 struct json_stream *result)

Callers 4

plugin_rpcmethod_cbFunction · 0.85
command_successFunction · 0.85
command_failedFunction · 0.85
rpc_command_hook_finalFunction · 0.85

Calls 2

json_stream_closeFunction · 0.85
tal_freeFunction · 0.85

Tested by

no test coverage detected