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

Function json_stream_success

lightningd/jsonrpc.c:731–740  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

729}
730
731struct json_stream *json_stream_success(struct command *cmd)
732{
733 struct json_stream *r = json_start(cmd);
734 json_object_start(r, "result");
735
736 /* We have results? OK, start filtering */
737 if (cmd->filter)
738 json_stream_attach_filter(r, cmd->filter);
739 return r;
740}
741
742struct json_stream *json_stream_fail_nodata(struct command *cmd,
743 enum jsonrpc_errcode code,

Callers 15

handle_tx_broadcastFunction · 0.70
handle_dry_run_finishedFunction · 0.70
build_commit_responseFunction · 0.70
handle_psbt_changedFunction · 0.70
json_feeratesFunction · 0.70
json_parse_feerateFunction · 0.70
wait_index_bumpFunction · 0.70
json_waitFunction · 0.70
channel_cleanup_commandsFunction · 0.70
json_signmessageFunction · 0.70
listnodes_doneFunction · 0.70
json_checkmessageFunction · 0.70

Calls 3

json_object_startFunction · 0.85
json_startFunction · 0.70

Tested by

no test coverage detected