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

Function jsonrpc_stream_success

plugins/libplugin.c:440–450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

438}
439
440struct json_stream *jsonrpc_stream_success(struct command *cmd)
441{
442 struct json_stream *js = jsonrpc_stream_start(cmd);
443 assert(cmd->type == COMMAND_TYPE_NORMAL
444 || cmd->type == COMMAND_TYPE_HOOK);
445
446 json_object_start(js, "result");
447 if (cmd->filter)
448 json_stream_attach_filter(js, cmd->filter);
449 return js;
450}
451
452struct json_stream *jsonrpc_stream_fail(struct command *cmd,
453 int code,

Callers 15

refresh_completeFunction · 0.70
json_listsqlschemasFunction · 0.70
htlc_accepted_continueFunction · 0.70
sendpsbt_doneFunction · 0.70
finish_txprepareFunction · 0.70
unreserve_doneFunction · 0.70
listfunds_doneFunction · 0.70
json_paystatusFunction · 0.70
on_payment_successFunction · 0.70
selfpay_successFunction · 0.70

Calls 3

jsonrpc_stream_startFunction · 0.85
json_object_startFunction · 0.85

Tested by 2

json_peer_connectedFunction · 0.40
testrpc_cbFunction · 0.40