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

Function peer_eq_node_id

connectd/connectd.h:115–119  ·  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

113
114/*~ We also define an equality function: is this element equal to this key? */
115static bool peer_eq_node_id(const struct peer *peer,
116 const struct node_id *id)
117{
118 return node_id_eq(&peer->id, id);
119}
120
121/*~ This defines 'struct peer_htable' which contains 'struct peer' pointers. */
122HTABLE_DEFINE_TYPE(struct peer,

Callers

nothing calls this directly

Calls 1

node_id_eqFunction · 0.85

Tested by

no test coverage detected