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

Function chaininfo_err

plugins/bwatch/bwatch_interface.c:227–237  ·  view source on GitHub ↗

Non-fatal: watchman may not be ready yet; poll anyway. */

Source from the content-addressed store, hash-verified

225
226/* Non-fatal: watchman may not be ready yet; poll anyway. */
227static struct command_result *chaininfo_err(struct command *cmd,
228 const char *method UNUSED,
229 const char *buf,
230 const jsmntok_t *result,
231 void *unused UNUSED)
232{
233 plugin_log(cmd->plugin, LOG_DBG,
234 "chaininfo RPC failed: %.*s",
235 json_tok_full_len(result), json_tok_full(buf, result));
236 return chaininfo_ack(cmd, method, buf, result, unused);
237}
238
239/* Got chain state from bcli: optionally roll back, then forward to watchman. */
240static struct command_result *chaininfo_getchaininfo_done(struct command *cmd,

Callers

nothing calls this directly

Calls 4

chaininfo_ackFunction · 0.85
plugin_logFunction · 0.50
json_tok_full_lenFunction · 0.50
json_tok_fullFunction · 0.50

Tested by

no test coverage detected