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

Function chanidx_eq_id

common/gossmap.c:25–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23/* This makes an htable of indices into our array. */
24static struct short_channel_id chanidx_id(const ptrint_t *pidx);
25static bool chanidx_eq_id(const ptrint_t *pidx,
26 struct short_channel_id scid)
27{
28 struct short_channel_id pidxid = chanidx_id(pidx);
29 return short_channel_id_eq(&pidxid, &scid);
30}
31static size_t scid_hash(const struct short_channel_id scid)
32{
33 return siphash24(siphash_seed(), &scid, sizeof(scid));

Callers

nothing calls this directly

Calls 1

chanidx_idFunction · 0.85

Tested by

no test coverage detected