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

Function poll_finished

plugins/bwatch/bwatch.c:72–80  ·  view source on GitHub ↗

Reschedule at the configured interval (used when there's nothing new to * fetch, or on error). Once we're caught up to bitcoind's tip, this is * what governs the steady-state poll cadence. */

Source from the content-addressed store, hash-verified

70 * fetch, or on error). Once we're caught up to bitcoind's tip, this is
71 * what governs the steady-state poll cadence. */
72static struct command_result *poll_finished(struct command *cmd)
73{
74 struct bwatch *bwatch = bwatch_of(cmd->plugin);
75
76 bwatch->poll_timer = global_timer(cmd->plugin,
77 time_from_msec(bwatch->poll_interval_ms),
78 bwatch_poll_chain, NULL);
79 return timer_complete(cmd);
80}
81
82/* Send watch_revert for every owner affected by losing @removed_height. */
83static void bwatch_notify_reorg_watches(struct command *cmd,

Callers 3

handle_blockFunction · 0.85
getchaininfo_doneFunction · 0.85
getchaininfo_failedFunction · 0.85

Calls 3

bwatch_ofFunction · 0.85
time_from_msecFunction · 0.85
timer_completeFunction · 0.85

Tested by

no test coverage detected