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

Function want_tor

connectd/connectd.c:1450–1458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1448}
1449
1450static bool want_tor(const struct wireaddr_internal *proposed_wireaddr)
1451{
1452 for (size_t i = 0; i < tal_count(proposed_wireaddr); i++) {
1453 if (proposed_wireaddr[i].itype == ADDR_INTERNAL_STATICTOR
1454 || proposed_wireaddr[i].itype == ADDR_INTERNAL_AUTOTOR)
1455 return true;
1456 }
1457 return false;
1458}
1459
1460/*~ The user can specify three kinds of addresses: ones we bind to but don't
1461 * announce, ones we announce but don't bind to, and ones we bind to and

Callers 1

setup_listenersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected