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

Function ptrint2chan

common/gossmap.c:203–206  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

201
202/* htable can't handle NULL or 1 values, so we add 2 */
203static struct gossmap_chan *ptrint2chan(const ptrint_t *pidx)
204{
205 return map->chan_arr + ptr2int(pidx) - 2;
206}
207
208static ptrint_t *chan2ptrint(const struct gossmap_chan *chan)
209{

Callers 2

chanidx_idFunction · 0.85
gossmap_find_chanFunction · 0.85

Calls 1

ptr2intFunction · 0.85

Tested by

no test coverage detected