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

Function jsonrpc_stream_success

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

Source from the content-addressed store, hash-verified

448}
449
450struct json_stream *jsonrpc_stream_success(struct command *cmd)
451{
452 struct json_stream *js = jsonrpc_stream_start(cmd);
453 assert(cmd->type == COMMAND_TYPE_NORMAL
454 || cmd->type == COMMAND_TYPE_HOOK);
455
456 json_object_start(js, "result");
457 if (cmd->filter)
458 json_stream_attach_filter(js, cmd->filter);
459 return js;
460}
461
462struct json_stream *jsonrpc_stream_fail(struct command *cmd,
463 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