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

Function send_more_cmd

plugins/commando.c:626–644  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

624};
625
626static struct command_result *send_more_cmd(struct command *cmd,
627 const char *buf UNUSED,
628 const jsmntok_t *result UNUSED,
629 struct outgoing *outgoing)
630{
631 struct out_req *req;
632
633 if (outgoing->msg_off == tal_count(outgoing->msgs)) {
634 tal_free(outgoing);
635 return command_still_pending(cmd);
636 }
637
638 req = jsonrpc_request_start(plugin, cmd, "sendcustommsg",
639 send_more_cmd, forward_error, outgoing);
640 json_add_node_id(req->js, "node_id", &outgoing->peer);
641 json_add_hex_talarr(req->js, "msg", outgoing->msgs[outgoing->msg_off++]);
642
643 return send_outreq(plugin, req);
644}
645
646static struct command_result *json_commando(struct command *cmd,
647 const char *buffer,

Callers 1

json_commandoFunction · 0.85

Calls 5

tal_freeFunction · 0.85
command_still_pendingFunction · 0.70
send_outreqFunction · 0.70
json_add_node_idFunction · 0.50
json_add_hex_talarrFunction · 0.50

Tested by

no test coverage detected