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

Function append_addr

connectd/connectd.c:173–181  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

171
172/*~ Helper to append a wireaddr to an array if wireaddr_internal */
173static void append_addr(struct wireaddr_internal **wireaddrs,
174 const struct wireaddr *addr)
175{
176 struct wireaddr_internal addrint;
177 addrint.itype = ADDR_INTERNAL_WIREADDR;
178 addrint.u.wireaddr.is_websocket = false;
179 addrint.u.wireaddr.wireaddr = *addr;
180 tal_arr_expand(wireaddrs, addrint);
181}
182
183/*~ Nodes (can) advertize one or more addresses in their node_announcement:
184 * 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