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

Function command_raw_complete

lightningd/jsonrpc.c:446–457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

444}
445
446struct command_result *command_raw_complete(struct command *cmd,
447 struct json_stream *result)
448{
449 json_stream_close(result, cmd);
450
451 /* If we have a jcon, it will free result for us. */
452 if (cmd->jcon)
453 tal_steal(cmd->jcon, result);
454
455 tal_free(cmd);
456 return &complete;
457}
458
459struct command_result *command_success(struct command *cmd,
460 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