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

Function ptrint2chan

common/gossmap.c:229–232  ·  view source on GitHub ↗

htable can't handle NULL or 1 values, so we add 2 */

Source from the content-addressed store, hash-verified

227
228/* htable can't handle NULL or 1 values, so we add 2 */
229static struct gossmap_chan *ptrint2chan(const ptrint_t *pidx)
230{
231 return map->chan_arr + ptr2int(pidx) - 2;
232}
233
234static ptrint_t *chan2ptrint(const struct gossmap_chan *chan)
235{

Callers 2

chanidx_idFunction · 0.85
gossmap_find_chanFunction · 0.85

Calls 1

ptr2intFunction · 0.85

Tested by

no test coverage detected