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

Function block_processed_err

plugins/bwatch/bwatch_interface.c:146–161  ·  view source on GitHub ↗

Non-fatal: watchman may not be ready yet (e.g. lightningd still booting). * Reschedule the poll anyway so we keep retrying without busy-looping. */

Source from the content-addressed store, hash-verified

144/* Non-fatal: watchman may not be ready yet (e.g. lightningd still booting).
145 * Reschedule the poll anyway so we keep retrying without busy-looping. */
146static struct command_result *block_processed_err(struct command *cmd,
147 const char *method UNUSED,
148 const char *buf,
149 const jsmntok_t *result,
150 void *unused UNUSED)
151{
152 struct bwatch *bwatch = bwatch_of(cmd->plugin);
153
154 plugin_log(cmd->plugin, LOG_DBG,
155 "block_processed RPC failed (watchman not ready?): %.*s",
156 json_tok_full_len(result), json_tok_full(buf, result));
157
158 bwatch->poll_timer = global_timer(cmd->plugin, time_from_sec(0),
159 bwatch_poll_chain, NULL);
160 return timer_complete(cmd);
161}
162
163struct command_result *bwatch_send_block_processed(struct command *cmd)
164{

Callers

nothing calls this directly

Calls 6

bwatch_ofFunction · 0.85
time_from_secFunction · 0.85
timer_completeFunction · 0.85
plugin_logFunction · 0.50
json_tok_full_lenFunction · 0.50
json_tok_fullFunction · 0.50

Tested by

no test coverage detected