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

Function nodeidx_eq_id

common/gossmap.c:39–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37
38static struct node_id nodeidx_id(const ptrint_t *pidx);
39static bool nodeidx_eq_id(const ptrint_t *pidx, const struct node_id id)
40{
41 struct node_id pidxid = nodeidx_id(pidx);
42 return node_id_eq(&pidxid, &id);
43}
44static size_t nodeid_hash(const struct node_id id)
45{
46 return siphash24(siphash_seed(), &id, PUBKEY_CMPR_LEN);

Callers

nothing calls this directly

Calls 2

nodeidx_idFunction · 0.85
node_id_eqFunction · 0.85

Tested by

no test coverage detected