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

Function chaininfo_ack

plugins/bwatch/bwatch_interface.c:214–224  ·  view source on GitHub ↗

Watchman acked chaininfo: kick off normal polling. */

Source from the content-addressed store, hash-verified

212
213/* Watchman acked chaininfo: kick off normal polling. */
214static struct command_result *chaininfo_ack(struct command *cmd,
215 const char *method UNUSED,
216 const char *buf UNUSED,
217 const jsmntok_t *result UNUSED,
218 void *unused UNUSED)
219{
220 struct bwatch *bwatch = bwatch_of(cmd->plugin);
221 bwatch->poll_timer = global_timer(cmd->plugin, time_from_sec(0),
222 bwatch_poll_chain, NULL);
223 return timer_complete(cmd);
224}
225
226/* Non-fatal: watchman may not be ready yet; poll anyway. */
227static struct command_result *chaininfo_err(struct command *cmd,

Callers 1

chaininfo_errFunction · 0.85

Calls 3

bwatch_ofFunction · 0.85
time_from_secFunction · 0.85
timer_completeFunction · 0.85

Tested by

no test coverage detected