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

Function append_addr

connectd/connectd.c:174–182  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 2

append_gossmap_addressesFunction · 0.85
dns_resolvedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected