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

Function command_success

lightningd/jsonrpc.c:537–556  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

535}
536
537struct command_result *command_success(struct command *cmd,
538 struct json_stream *result)
539{
540 assert(cmd);
541 assert(cmd->json_stream == result);
542
543 /* Filter will get upset if we close "result" object it didn't
544 * see! */
545 if (cmd->filter) {
546 const char *err = json_stream_detach_filter(tmpctx, result);
547 if (err)
548 json_add_string(result, "warning_parameter_filter",
549 err);
550 }
551
552 json_object_end(result);
553 json_object_end(result);
554
555 return command_raw_complete(cmd, result);
556}
557
558struct command_result *command_failed(struct command *cmd,
559 struct json_stream *result)

Callers 15

handle_tx_broadcastFunction · 0.70
handle_dry_run_finishedFunction · 0.70
json_openchannel_updateFunction · 0.70
handle_psbt_changedFunction · 0.70
handle_commit_receivedFunction · 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

Calls 4

json_object_endFunction · 0.85
command_raw_completeFunction · 0.85
json_add_stringFunction · 0.50

Tested by

no test coverage detected