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

Function injectonionmessage_error

plugins/offers.c:127–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127static struct command_result *injectonionmessage_error(struct command *cmd,
128 const char *method,
129 const char *buf,
130 const jsmntok_t *err,
131 void *unused)
132{
133 /* This can happen if the peer goes offline or wasn't directly
134 * connected: "Unknown first peer" */
135 plugin_log(cmd->plugin, LOG_DBG,
136 "injectonionmessage gave JSON error: %.*s",
137 json_tok_full_len(err),
138 json_tok_full(buf, err));
139 return command_hook_success(cmd);
140}
141
142struct command_result *
143inject_onionmessage_(struct command *cmd,

Callers

nothing calls this directly

Calls 4

plugin_logFunction · 0.70
command_hook_successFunction · 0.70
json_tok_full_lenFunction · 0.50
json_tok_fullFunction · 0.50

Tested by

no test coverage detected