| 225 | AUTODATA(json_command, &stop_command); |
| 226 | |
| 227 | static bool have_channels(struct lightningd *ld) |
| 228 | { |
| 229 | struct peer_node_id_map_iter it; |
| 230 | struct peer *peer; |
| 231 | |
| 232 | for (peer = peer_node_id_map_first(ld->peers, &it); |
| 233 | peer; |
| 234 | peer = peer_node_id_map_next(ld->peers, &it)) { |
| 235 | if (peer->uncommitted_channel) |
| 236 | return true; |
| 237 | if (!list_empty(&peer->channels)) |
| 238 | return true; |
| 239 | } |
| 240 | return false; |
| 241 | } |
| 242 | |
| 243 | static struct command_result *param_hsm_secret(struct command *cmd, |
| 244 | const char *name, |