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

Function nodeidx_eq_id

common/gossmap.c:36–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34
35static struct node_id nodeidx_id(const ptrint_t *pidx);
36static bool nodeidx_eq_id(const ptrint_t *pidx, const struct node_id id)
37{
38 struct node_id pidxid = nodeidx_id(pidx);
39 return node_id_eq(&pidxid, &id);
40}
41/* You need to spend sats to create a channel to advertize your nodeid,
42 * so creating clashes is not free: we can be lazy! */
43static size_t nodeid_hash(const struct node_id id)

Callers

nothing calls this directly

Calls 2

nodeidx_idFunction · 0.85
node_id_eqFunction · 0.85

Tested by

no test coverage detected