Watchman acked chaininfo: kick off normal polling. */
| 212 | |
| 213 | /* Watchman acked chaininfo: kick off normal polling. */ |
| 214 | static 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. */ |
| 227 | static struct command_result *chaininfo_err(struct command *cmd, |
no test coverage detected