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

Function append_addr

connectd/connectd.c:170–178  ·  view source on GitHub ↗

~ Helper to append a wireaddr to an array if wireaddr_internal */

Source from the content-addressed store, hash-verified

168
169/*~ Helper to append a wireaddr to an array if wireaddr_internal */
170static void append_addr(struct wireaddr_internal **wireaddrs,
171 const struct wireaddr *addr)
172{
173 struct wireaddr_internal addrint;
174 addrint.itype = ADDR_INTERNAL_WIREADDR;
175 addrint.u.wireaddr.is_websocket = false;
176 addrint.u.wireaddr.wireaddr = *addr;
177 tal_arr_expand(wireaddrs, addrint);
178}
179
180/*~ Nodes (can) advertize one or more addresses in their node_announcement:
181 * these are lower priority than ones explicitly supplied to the `connect`

Callers 2

append_gossmap_addressesFunction · 0.85
try_connect_one_addrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected