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

Function have_channels

lightningd/jsonrpc.c:227–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225AUTODATA(json_command, &stop_command);
226
227static 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
243static struct command_result *param_hsm_secret(struct command *cmd,
244 const char *name,

Callers 1

json_recoverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected