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

Function address_routable

connectd/netaddress.c:268–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266}
267
268bool address_routable(const struct wireaddr *wireaddr, bool allow_localhost)
269{
270 if (allow_localhost && IsLocal(wireaddr))
271 return true;
272 return IsRoutable(wireaddr);
273}

Callers 4

public_addressFunction · 0.70
peer_init_receivedFunction · 0.70
peer_exchange_initmsgFunction · 0.70
mainFunction · 0.50

Calls 2

IsLocalFunction · 0.85
IsRoutableFunction · 0.85

Tested by 1

mainFunction · 0.40