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

Function wireaddr_arr_contains

common/wireaddr.c:967–974  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

965}
966
967bool wireaddr_arr_contains(const struct wireaddr *was,
968 const struct wireaddr *wa)
969{
970 for (size_t i = 0; i < tal_count(was); i++)
971 if (wireaddr_eq(&was[i], wa))
972 return true;
973 return false;
974}

Callers 3

dns_parse_resultsFunction · 0.85
best_remote_addrFunction · 0.85
json_getinfoFunction · 0.85

Calls 1

wireaddr_eqFunction · 0.85

Tested by

no test coverage detected