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

Function getchaininfo_failed

plugins/bwatch/bwatch.c:297–307  ·  view source on GitHub ↗

Non-fatal: bcli may not have come up yet — log and retry on the next poll. */

Source from the content-addressed store, hash-verified

295
296/* Non-fatal: bcli may not have come up yet — log and retry on the next poll. */
297static struct command_result *getchaininfo_failed(struct command *cmd,
298 const char *method UNUSED,
299 const char *buf,
300 const jsmntok_t *result,
301 void *unused UNUSED)
302{
303 plugin_log(cmd->plugin, LOG_DBG,
304 "getchaininfo failed (bcli not ready?): %.*s",
305 json_tok_full_len(result), json_tok_full(buf, result));
306 return poll_finished(cmd);
307}
308
309struct command_result *bwatch_poll_chain(struct command *cmd,
310 void *unused UNUSED)

Callers

nothing calls this directly

Calls 4

poll_finishedFunction · 0.85
plugin_logFunction · 0.50
json_tok_full_lenFunction · 0.50
json_tok_fullFunction · 0.50

Tested by

no test coverage detected