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

Function json_stream_success

lightningd/jsonrpc.c:727–736  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

725}
726
727struct json_stream *json_stream_success(struct command *cmd)
728{
729 struct json_stream *r = json_start(cmd);
730 json_object_start(r, "result");
731
732 /* We have results? OK, start filtering */
733 if (cmd->filter)
734 json_stream_attach_filter(r, cmd->filter);
735 return r;
736}
737
738struct json_stream *json_stream_fail_nodata(struct command *cmd,
739 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