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

Function peer_eq_node_id

connectd/connectd.h:161–165  ·  view source on GitHub ↗

~ We also define an equality function: is this element equal to this key? */

Source from the content-addressed store, hash-verified

159
160/*~ We also define an equality function: is this element equal to this key? */
161static bool peer_eq_node_id(const struct peer *peer,
162 const struct node_id *id)
163{
164 return node_id_eq(&peer->id, id);
165}
166
167/*~ This defines 'struct peer_htable' which contains 'struct peer' pointers. */
168HTABLE_DEFINE_NODUPS_TYPE(struct peer,

Callers

nothing calls this directly

Calls 1

node_id_eqFunction · 0.85

Tested by

no test coverage detected