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

Function peer_keyof

connectd/connectd.h:166–169  ·  view source on GitHub ↗

~ The HTABLE_DEFINE_TYPE() macro needs a keyof() function to extract the key: */

Source from the content-addressed store, hash-verified

164/*~ The HTABLE_DEFINE_TYPE() macro needs a keyof() function to extract the key:
165 */
166static const struct node_id *peer_keyof(const struct peer *peer)
167{
168 return &peer->id;
169}
170
171/*~ We reuse node_id_hash from common/node_id.h, which uses siphash
172 * and a per-run seed. */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected