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

Function find_localmod

common/gossmap.c:1043–1050  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1041}
1042
1043static struct localmod *find_localmod(struct gossmap_localmods *localmods,
1044 struct short_channel_id scid)
1045{
1046 for (size_t i = 0; i < tal_count(localmods->mods); i++)
1047 if (short_channel_id_eq(localmods->mods[i].scid, scid))
1048 return &localmods->mods[i];
1049 return NULL;
1050}
1051
1052bool gossmap_local_addchan(struct gossmap_localmods *localmods,
1053 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