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

Function find_localmod

common/gossmap.c:1038–1045  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1036}
1037
1038static struct localmod *find_localmod(struct gossmap_localmods *localmods,
1039 struct short_channel_id scid)
1040{
1041 for (size_t i = 0; i < tal_count(localmods->mods); i++)
1042 if (short_channel_id_eq(localmods->mods[i].scid, scid))
1043 return &localmods->mods[i];
1044 return NULL;
1045}
1046
1047bool gossmap_local_addchan(struct gossmap_localmods *localmods,
1048 const struct node_id *n1,

Callers 2

gossmap_local_addchanFunction · 0.85
gossmap_local_updatechanFunction · 0.85

Calls 1

short_channel_id_eqFunction · 0.85

Tested by

no test coverage detected