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

Function wireaddr_eq_without_port

common/wireaddr.c:23–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23bool wireaddr_eq_without_port(const struct wireaddr *a, const struct wireaddr *b)
24{
25 if (a->type != b->type)
26 return false;
27 return memeq(a->addr, a->addrlen, b->addr, b->addrlen);
28}
29
30/* Returns false if we didn't parse it, and *cursor == NULL if malformed. */
31bool fromwire_wireaddr(const u8 **cursor, size_t *max, struct wireaddr *addr)

Callers 2

handle_discovered_ipFunction · 0.85
update_remote_addrFunction · 0.85

Calls 1

memeqFunction · 0.85

Tested by

no test coverage detected