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

Function find_localmod

common/gossmap.c:753–760  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

751}
752
753static struct localmod *find_localmod(struct gossmap_localmods *localmods,
754 const struct short_channel_id *scid)
755{
756 for (size_t i = 0; i < tal_count(localmods->mods); i++)
757 if (short_channel_id_eq(&localmods->mods[i].scid, scid))
758 return &localmods->mods[i];
759 return NULL;
760}
761
762bool gossmap_local_addchan(struct gossmap_localmods *localmods,
763 const struct node_id *n1,

Callers 2

gossmap_local_addchanFunction · 0.85
gossmap_local_updatechanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected