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

Function connect_succeeded

lightningd/connect_control.c:414–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

412}
413
414void connect_succeeded(struct lightningd *ld, const struct peer *peer,
415 bool incoming,
416 const struct wireaddr_internal *addr)
417{
418 struct connect *c;
419
420 /* We can have multiple connect commands: fail them all */
421 while ((c = find_connect(ld, &peer->id)) != NULL) {
422 /* They delete themselves from list */
423 connect_cmd_succeed(c->cmd, peer, incoming, addr);
424 }
425}
426
427struct custommsg_payload {
428 struct node_id peer_id;

Callers 1

Calls 2

find_connectFunction · 0.85
connect_cmd_succeedFunction · 0.85

Tested by

no test coverage detected