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

Function already_have_node_id

plugins/chanbackup.c:568–576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

566}
567
568static bool already_have_node_id(const struct node_id *ids,
569 const struct node_id *id)
570{
571 for (size_t i = 0; i < tal_count(ids); i++)
572 if (node_id_eq(&ids[i], id))
573 return true;
574
575 return false;
576}
577
578static const struct node_id *random_peers(const tal_t *ctx,
579 const struct chanbackup *cb)

Callers 1

random_peersFunction · 0.85

Calls 1

node_id_eqFunction · 0.85

Tested by

no test coverage detected